smol-rs / fastrand

A simple and fast random number generator
Apache License 2.0
386 stars 33 forks source link

Use getrandom for seeding the RNG on WASM targets #60

Closed notgull closed 1 year ago

notgull commented 1 year ago

See this comment. On Web targets with the js feature enabled, the getrandom crate is used to seed the global RNG. When it isn't, it just uses a fixed seed.

Closes #27 Closes #54