You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the method generateBsn() from nl.hsac.fitnesse.fixture.util.BsnUtil a lot of times, I get relatively often numbers that it has already generated earlier.
For investigating, I use the following code, impemented as a junit test, but used only for its output to stdout:
The clashes appear more often than 1 in 100 , even at the very beginning, when just a few numbers have been generated.
I get similar results when I instantiate BsnUtil only once and call generateBsn 1 million times.
Why do these clashes appear so often ? Can the algorithm be inproved ?
Kind regards,
Paul van Bemmelen.
The text was updated successfully, but these errors were encountered:
When I run the method generateBsn() from nl.hsac.fitnesse.fixture.util.BsnUtil a lot of times, I get relatively often numbers that it has already generated earlier.
For investigating, I use the following code, impemented as a junit test, but used only for its output to stdout:
I get the following output:
The clashes appear more often than 1 in 100 , even at the very beginning, when just a few numbers have been generated.
I get similar results when I instantiate BsnUtil only once and call generateBsn 1 million times.
Why do these clashes appear so often ? Can the algorithm be inproved ?
Kind regards,
Paul van Bemmelen.
The text was updated successfully, but these errors were encountered: