EdGarrity / SOS

Search for an Optimum Solution
1 stars 0 forks source link

Thread-Safe Random Number Generator #99

Closed EdGarrity closed 5 years ago

EdGarrity commented 5 years ago

Need to implement a thread-safe random number generator. The current random number generator (RNG) does not seem to be thread-safe or random. For example, a call to rng.random(3) in random_atom() returned 3. It should have returned a number from (0, 2) inclusive.

See https://stackoverflow.com/questions/21237905/how-do-i-generate-thread-safe-uniform-random-numbers for an example.