File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ fn test_zero() {
13
13
}
14
14
15
15
#[ test]
16
+ #[ cfg( not( feature = "custom" ) ) ]
16
17
fn test_diff ( ) {
17
18
let mut v1 = [ 0u8 ; 1000 ] ;
18
19
getrandom_impl ( & mut v1) . unwrap ( ) ;
Original file line number Diff line number Diff line change 7
7
) ) ]
8
8
9
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
10
13
11
use core:: num:: NonZeroU32 ;
14
12
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
33
34
+ use getrandom:: getrandom as getrandom_impl;
35
+ mod common;
36
+
36
37
#[ test]
37
38
fn custom_rng_output ( ) {
38
39
let mut buf = [ 0u8 ; 4 ] ;
You can’t perform that action at this time.
0 commit comments