-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use getentropy() libc function on Emscripten #275
Comments
I do agree that the file descriptor mechanism is worse. However, isn't Emscripten's |
IIUC, the point of the Emscripten target is to not use things like |
Part of addressing #275 Signed-off-by: Joe Richey <joerichey@google.com>
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
The text was updated successfully, but these errors were encountered: