mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Emscripten registers /dev/urandom and /dev/random by default, but falls back to Math.random()*256 when crypto.getRandomValues() is not available, which is not acceptable. So we need to re-register them no matter what.