Skip to content

Commit

Permalink
Fix boolean result in ranb
Browse files Browse the repository at this point in the history
  • Loading branch information
szapp committed Jan 20, 2024
1 parent 31c2f70 commit c79e9bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rng/rng_gasdev_ran1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ double ran1(Seed& seed)
*/
unsigned char ranb(Seed& seed)
{
return ran1(seed) > 0.5;
return ran1(seed) >= 0.5;
}


Expand Down

0 comments on commit c79e9bb

Please sign in to comment.