Skip to content

Commit 309e98d

Browse files
committed
remove getrandom::register_custom_getrandom for wasm-deterministic
1 parent f6621cb commit 309e98d

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

stacks-common/src/libcommon.rs

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -110,23 +110,6 @@ pub mod versions {
110110
include!(concat!(env!("OUT_DIR"), "/versions.rs"));
111111
}
112112

113-
#[cfg(all(feature = "wasm-deterministic", target_family = "wasm"))]
114-
mod getrandom {
115-
use core::num::NonZeroU32;
116-
117-
use getrandom::Error;
118-
119-
pub const NO_RANDOMNESS_ERROR_CODE: u32 = Error::CUSTOM_START;
120-
pub fn always_fail(_buf: &mut [u8]) -> Result<(), Error> {
121-
let code = NonZeroU32::new(NO_RANDOMNESS_ERROR_CODE).unwrap();
122-
Err(Error::from(code))
123-
}
124-
pub use getrandom::register_custom_getrandom;
125-
}
126-
127-
#[cfg(all(feature = "wasm-deterministic", target_family = "wasm"))]
128-
getrandom::register_custom_getrandom!(getrandom::always_fail);
129-
130113
/// This test asserts that the constant above doesn't change.
131114
/// This exists because the constant above is used by Epoch 2.5 instantiation code.
132115
///

0 commit comments

Comments
 (0)