The solution is to either switch to a round-robin mechanism or develop a thread-safe randomizer. Another possible solution that I am not to fond of is to detect that zero is being returned consecutively and re-instantiate the random instance.
Environment
None
Gerrit Reviews
None
Release Notes Description
None
Activity
Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.
See https://stackoverflow.com/questions/4613693/random-next-sometimes-returns-same-number-in-separate-threads and https://csharpindepth.com/Articles/Random
The solution is to either switch to a round-robin mechanism or develop a thread-safe randomizer. Another possible solution that I am not to fond of is to detect that zero is being returned consecutively and re-instantiate the random instance.