We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0dadb58 commit 3d554a8Copy full SHA for 3d554a8
randomstate/src/mrg32k3a/mrg32k3a.h
@@ -30,7 +30,7 @@ inline uint32_t mrg32k3a_random(mrg32k3a_state* state)
30
p1 = a12 * state->s11 - a13n * state->s10;
31
k = p1 / m1;
32
p1 -= k * m1;
33
- if (p1 < 0.0)
+ if (p1 < 0)
34
p1 += m1;
35
state->s10 = state->s11;
36
state->s11 = state->s12;
@@ -40,7 +40,7 @@ inline uint32_t mrg32k3a_random(mrg32k3a_state* state)
40
p2 = a21 * state->s22 - a23n * state->s20;
41
k = p2 / m2;
42
p2 -= k * m2;
43
- if (p2 < 0.0)
+ if (p2 < 0)
44
p2 += m2;
45
state->s20 = state->s21;
46
state->s21 = state->s22;
0 commit comments