Skip to content

Commit 0c619f6

Browse files
committed
Fix build failure with js feature
1 parent a4077e2 commit 0c619f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/global_rng.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ fn random_seed() -> Option<u64> {
220220
fn random_seed() -> Option<u64> {
221221
// TODO(notgull): Failures should be logged somewhere.
222222
let mut seed = [0u8; 8];
223-
getrandom::getrandom(&mut seed).ok()?;
223+
getrandom::fill(&mut seed).ok()?;
224224
Some(u64::from_ne_bytes(seed))
225225
}
226226

0 commit comments

Comments
 (0)