Skip to content

Conversation

enci
Copy link

@enci enci commented Mar 10, 2023

The no args constructor for Random creates an objects with the same seed within the same second, because time() has second resolution. Adding clock() to the seed removes this implicit and undocumented behavior.

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.

1 participant