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

Better seeding for Random #65

Open
GoogleCodeExporter opened this issue Dec 3, 2015 · 1 comment
Open

Better seeding for Random #65

GoogleCodeExporter opened this issue Dec 3, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Currently it creates its randomness source using the default constructor of the 
Random class. But the well known problem with that is that this is seeded with 
the system time, which typically doesn't change for 16ms. So all instances of 
the random class created during that interval will return the same sequence.

My suggestion is creating one static instance of random and using it(with 
locking of course) to create the seed for the individual instances of Random.

Original issue reported on code.google.com by [email protected] on 2 Mar 2011 at 9:07

@GoogleCodeExporter
Copy link
Author

This issue has been migrated to:
https://github.com/MoreLINQ/morelinq/issues/65
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 21 Aug 2015 at 6:55

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

No branches or pull requests

1 participant