-
Notifications
You must be signed in to change notification settings - Fork 3.4k
std::random_device
can not constructing
#2439
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
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. |
# for free
to join this conversation on GitHub.
Already have an account?
# 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: