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 b79f304 commit c5fe33eCopy full SHA for c5fe33e
randomstate/shims/mrg32k3a/mrg32k3a-shim.h
@@ -58,7 +58,7 @@ inline void entropy_init(aug_state* state)
58
for (i = 0; i<6; i++)
59
{
60
val = (i < 3) ? STATE_MAX_VALUE_1 : STATE_MAX_VALUE_2;
61
- seeds[i] = (int64_t)((buf[i] < val) ? buf[i] : (buf[i] / 2) + 1);
+ seeds[i] = (int64_t)(buf[i] % val);
62
all_zero = all_zero || (seeds[i] > 0);
63
}
64
0 commit comments