Add comment crediting the random number generation algorithm
This commit is contained in:
@@ -19,6 +19,7 @@ Random::Random(RandomSeed seed) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
uint64_t Random::gen() {
|
uint64_t Random::gen() {
|
||||||
|
// An implementation of the Xoroshiro128+ algorithm
|
||||||
auto s0 = m_seed[0];
|
auto s0 = m_seed[0];
|
||||||
auto s1 = m_seed[1];
|
auto s1 = m_seed[1];
|
||||||
auto retval = s0 + s1;
|
auto retval = s0 + s1;
|
||||||
|
|||||||
Reference in New Issue
Block a user