Closed wilwade closed 1 year ago
The SmallRng
docs clearly state:
The current algorithm is Xoshiro256PlusPlus on 64-bit platforms and Xoshiro128PlusPlus on 32-bit platforms.
If you need portable reproducibility, you should use a concrete PRNG. We may change it in future and use the same PRNG on all targets (we had a discussion about it, but I can't find the link), but today it is what it is.
Thanks. I guess I wasn't thinking of them as different bits (obvious in retrospect).
Curious about the choice, but thanks for the quick response.
Threw together a quick repo that shows this difference: https://github.com/wilwade/wasm-rand-test
Expected: That the output is the same on both WASM and in Rust. Actual: It is different.
Might be something I am just missing?