You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because this will never be cryptographically secure. Probably we should just remove autoseed entirely. There is no good reason to use seed-random with a random seed. The whole purpose is to have reproducible tests.
Currently, the
autoseed()
function returns the following as randomly-generated seed:This is nowhere near secure, probably even
Math.random()
is better than that when entropy is not enabled.Node.js provides
crypto.randomBytes()
which is supposed to be "cryptographically strong pseudo-random." So why not add that as an option?The text was updated successfully, but these errors were encountered: