Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

src: seed V8's random number generator at startup #6253

Merged
merged 1 commit into from
Sep 21, 2013

Conversation

bnoordhuis
Copy link
Member

The default entropy source is /dev/urandom on UNIX platforms, which is
okay but we can do better by seeding it from OpenSSL's entropy pool.

On Windows we can certainly do better; on that platform, V8 seeds the
random number generator using only the current system time.

Fixes #6250.

Suggested reviewers: @indutny, @piscisaureus

The default entropy source is /dev/urandom on UNIX platforms, which is
okay but we can do better by seeding it from OpenSSL's entropy pool.

On Windows we can certainly do better; on that platform, V8 seeds the
random number generator using only the current system time.

Fixes nodejs#6250.
@indutny
Copy link
Member

indutny commented Sep 21, 2013

LGTM, good job

@bnoordhuis bnoordhuis merged commit 7ac2391 into nodejs:master Sep 21, 2013
@bnoordhuis
Copy link
Member Author

Thanks for the review, Fedor. Landed in 7ac2391.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants