We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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()
inConstructor
Problem solved :)
The text was updated successfully, but these errors were encountered:
Yes, that looks like a workable solution. Thanks.
Sorry, something went wrong.
You're welcome. Slight correction on the field definition, it should be:
private final AtomicBoolean inConstructor = new AtomicBoolean(true)
No branches or pull requests
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: