mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-01 12:24:36 -04:00
removing call to drand48(). RSRandom is safer
This commit is contained in:
parent
2ef51edb8c
commit
ffcf44b3fe
1 changed files with 2 additions and 2 deletions
|
@ -791,11 +791,11 @@ bool perform_tests()
|
|||
uint256_32 n1 = uint256_32::random();
|
||||
uint256_32 p1 = uint256_32::random();
|
||||
|
||||
if(drand48() < 0.2)
|
||||
if(RSRandom::random_f32() < 0.2)
|
||||
{
|
||||
p1.b[7] = 0 ;
|
||||
|
||||
if(drand48() < 0.1)
|
||||
if(RSRandom::random_f32() < 0.1)
|
||||
p1.b[6] = 0 ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue