-
Notifications
You must be signed in to change notification settings - Fork 3
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
What is the purpose of window.crypto.getRandomValues(d)? #3
Comments
Hey @r0hin, thanks for the question! The logic on line 39 creates a default random seed in the event the user does not specify one. It is always invoked, but the result is not always used. If you're looking to bring this into NodeJS, you'll find some tips here: |
I understand! Thanks for the answer (and library). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(Ln 39), it does not look like this method is being used.
This line also prevents isaacCSPRNG from being run on NodeJS since the
window.crypto
object is undefined.Should it be removed?
The text was updated successfully, but these errors were encountered: