-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
std::random_device
can not constructing
#2439
Comments
Probably |
kripken
added a commit
that referenced
this issue
Jun 24, 2014
Implemented. |
Thanks implement. But, I think ( ref.: https://dvcs.w3.org/hg/webcrypto-api/raw-file/tip/spec/Overview.html#dfn-RandomSource ) |
Good point, yeah, we should use that where available. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Testing environment:
Sample code:
Result of the sample:
The exception thrown from maybe: /~https://github.com/kripken/emscripten/blob/master/system/lib/libcxx/random.cpp#L53
26.5.6 of the C++ specification:
I think, Emscripten's
std::random_device
constructor is need specific token. Or, it need/dev/urandom
emulation.The text was updated successfully, but these errors were encountered: