Task #1369
closed
Unify randomization using Boost.Random library
Added by Alex Afanasyev over 10 years ago.
Updated over 10 years ago.
Description
Currently we have several places where random variables are used in a different way with different approaches to seeding. CS uses srand and rand, ncc strategy uses nrand48. Since we now have ability to use Boost.Random library, the use of random variables should be abstracted and unified.
I think it's unnecessary to abstract randomization.
We just need to unify randomization:
- provide a global Uniform Random Number Generator instance, by default
mt19937_64
- let each module have its own Random Distribution
This wasn't about abstract randomization, rather about the fact that we have 4 different mechanisms to get random numbers: with boost random, with nrand, with just rand, and with cryptopp random generator. There shouldn't be such variety, since it almost impossible to properly seed the random number generator when the need arises.
- Assignee set to Junxiao Shi
- Estimated time set to 3.00 h
20140530 conference call approves the approach in note-1.
- Status changed from New to In Progress
- % Done changed from 0 to 70
- Status changed from In Progress to Code review
- Status changed from Code review to Closed
- % Done changed from 70 to 100
Also available in: Atom
PDF