Skip to content
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

random.seeding is broken if urandom is absent #332

Merged
merged 1 commit into from Apr 26, 2012

Conversation

vibrant
Copy link
Contributor

@vibrant vibrant commented Apr 12, 2012

calling random.seed(random.random()) in every child process will leave the random number generator at identical state at each process (because random.random() will be the same), so I changed it to using the current time and process ID as seed which should fix things up.

benoitc added a commit that referenced this pull request Apr 26, 2012
random.seeding is broken if urandom is absent
@benoitc benoitc merged commit 8c716dd into benoitc:master Apr 26, 2012
@benoitc
Copy link
Owner

benoitc commented Apr 26, 2012

@vibrant can you give me your informations to add you to the THANKS file?

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

Successfully merging this pull request may close these issues.

None yet

3 participants