Release 2.0.5: 09/28/2020 of Emscripten introduced a getentropy() call that can be used instead of opening /dev/urandom. We should use this as the preferred (or sole) method to get random data, as it avoids needing to open a file and hold onto a file descriptor.
NOTE: this probably requires getting the emscipten CI working with a recent-ish version
Release 2.0.5: 09/28/2020 of Emscripten introduced a
getentropy()call that can be used instead of opening/dev/urandom. We should use this as the preferred (or sole) method to get random data, as it avoids needing to open a file and hold onto a file descriptor.NOTE: this probably requires getting the emscipten CI working with a recent-ish version