We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c597868 commit c1fbd0dCopy full SHA for c1fbd0d
2 files changed
tests/common/mod.rs
@@ -13,6 +13,7 @@ fn test_zero() {
13
}
14
15
#[test]
16
+#[cfg(not(feature = "custom"))]
17
fn test_diff() {
18
let mut v1 = [0u8; 1000];
19
getrandom_impl(&mut v1).unwrap();
tests/custom.rs
@@ -7,8 +7,6 @@
7
))]
8
9
use wasm_bindgen_test::wasm_bindgen_test as test;
10
-#[cfg(feature = "test-in-browser")]
11
-wasm_bindgen_test::wasm_bindgen_test_configure!(run_in_browser);
12
use core::num::NonZeroU32;
use getrandom::{getrandom, register_custom_getrandom, Error};
@@ -33,6 +31,9 @@ fn super_insecure_rng(buf: &mut [u8]) -> Result<(), Error> {
33
31
34
32
register_custom_getrandom!(super_insecure_rng);
35
+use getrandom::getrandom as getrandom_impl;
+mod common;
36
+
37
38
fn custom_rng_output() {
39
let mut buf = [0u8; 4];
0 commit comments