-
Notifications
You must be signed in to change notification settings - Fork 40
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
setSeed() should throw an exception #9
Comments
Yes, that looks like a workable solution. Thanks. |
You're welcome. Slight correction on the field definition, it should be:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following up on your post at http://blog.uncommons.org/2012/11/22/uncommons-maths-1-2-3/ you can solve the problem by doing the following:
private AtomicBoolean inConstructor = true
.setSeed()
is invoked, it only throws an exception ifinConstructor
is false.inConstructor
to false.Problem solved :)
The text was updated successfully, but these errors were encountered: