fix edge-case in Dummy-backend random number generator initialization
This commit is contained in:
parent
92fe47bdee
commit
4b25c80cb9
@ -1525,6 +1525,7 @@ void DummyPort::setup_random_number_generator ()
|
||||
_rseed = g_get_monotonic_time() % UINT_MAX;
|
||||
}
|
||||
_rseed = (_rseed + (uint64_t)this) % UINT_MAX;
|
||||
if (_rseed == 0) _rseed = 1;
|
||||
}
|
||||
|
||||
inline uint32_t
|
||||
|
Loading…
Reference in New Issue
Block a user