3737 - uses : Swatinem/rust-cache@v2
3838 - run : cargo test
3939 # Make sure enabling the std feature doesn't break anything
40- - run : cargo test --features=std
40+ - run : cargo test --features=std,rng
4141 - if : ${{ matrix.toolchain == 'nightly' }}
4242 run : cargo test --benches
4343
@@ -53,27 +53,27 @@ jobs:
5353 with :
5454 targets : ${{ matrix.target }}
5555 - uses : Swatinem/rust-cache@v2
56- - run : cargo test --target=${{ matrix.target }} --features=std
56+ - run : cargo test --target=${{ matrix.target }} --features=std,rng
5757 - env :
5858 RUSTFLAGS : -Dwarnings --cfg getrandom_backend="linux_getrandom"
5959 RUSTDOCFLAGS : -Dwarnings --cfg getrandom_backend="linux_getrandom"
60- run : cargo test --target=${{ matrix.target }} --features=std
60+ run : cargo test --target=${{ matrix.target }} --features=std,rng
6161 - env :
6262 RUSTFLAGS : -Dwarnings --cfg getrandom_backend="linux_raw"
6363 RUSTDOCFLAGS : -Dwarnings --cfg getrandom_backend="linux_raw"
64- run : cargo test --target=${{ matrix.target }} --features=std
64+ run : cargo test --target=${{ matrix.target }} --features=std,rng
6565 - env :
6666 RUSTFLAGS : -Dwarnings --cfg getrandom_test_linux_fallback
6767 RUSTDOCFLAGS : -Dwarnings --cfg getrandom_test_linux_fallback
68- run : cargo test --features=std
68+ run : cargo test --features=std,rng
6969 - env :
7070 RUSTFLAGS : -Dwarnings --cfg getrandom_test_linux_without_fallback
7171 RUSTDOCFLAGS : -Dwarnings --cfg getrandom_test_linux_without_fallback
72- run : cargo test --features=std
72+ run : cargo test --features=std,rng
7373 - env :
7474 RUSTFLAGS : -Dwarnings --cfg getrandom_backend="rdrand"
7575 RUSTDOCFLAGS : -Dwarnings --cfg getrandom_backend="rdrand"
76- run : cargo test --features=std
76+ run : cargo test --features=std,rng
7777
7878 ios :
7979 name : iOS Simulator
@@ -123,7 +123,7 @@ jobs:
123123 with :
124124 toolchain : ${{ matrix.toolchain }}
125125 - uses : Swatinem/rust-cache@v2
126- - run : cargo test --features=std
126+ - run : cargo test --features=std,rng
127127
128128 windows7 :
129129 name : Windows 7 (on Windows 10)
@@ -136,8 +136,8 @@ jobs:
136136 toolchain : nightly-2025-09-28
137137 components : rust-src
138138 - uses : Swatinem/rust-cache@v2
139- - run : cargo test --target=x86_64-win7-windows-msvc -Z build-std --features=std
140- - run : cargo test --target=i686-win7-windows-msvc -Z build-std --features=std
139+ - run : cargo test --target=x86_64-win7-windows-msvc -Z build-std --features=std,rng
140+ - run : cargo test --target=i686-win7-windows-msvc -Z build-std --features=std,rng
141141
142142 sanitizer-linux :
143143 name : Sanitizer Linux
@@ -216,7 +216,7 @@ jobs:
216216 wget -O - $URL | tar -xz -C ~/.cargo/bin
217217 cross --version
218218 - name : Test
219- run : cross test --no-fail-fast --target=${{ matrix.target }} --features=std
219+ run : cross test --no-fail-fast --target=${{ matrix.target }} --features=std,rng
220220
221221 freebsd :
222222 name : FreeBSD VM
@@ -273,14 +273,14 @@ jobs:
273273 description : Web,
274274 version : stable,
275275 flags : ' -Dwarnings --cfg getrandom_backend="wasm_js"' ,
276- args : ' --features=std,wasm_js' ,
276+ args : ' --features=std,rng, wasm_js' ,
277277 }
278278 - {
279279 description : Web with Atomics,
280280 version : nightly,
281281 components : rust-src,
282282 flags : ' -Dwarnings --cfg getrandom_backend="wasm_js" -Ctarget-feature=+atomics,+bulk-memory' ,
283- args : ' --features=std,wasm_js -Zbuild-std=panic_abort,std' ,
283+ args : ' --features=std,rng, wasm_js -Zbuild-std=panic_abort,std' ,
284284 }
285285 steps :
286286 - uses : actions/checkout@v5
0 commit comments