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 573bdf0 commit ae3adf8Copy full SHA for ae3adf8
code/Random/RandomGenerator.cpp
@@ -73,9 +73,9 @@ unsigned int mersenne_twister() {
73
bool ok = true;
74
if (static_cast<unsigned int>(idx) >= N) {
75
if (static_cast<unsigned int>(idx) > N) {
76
- ok |= mersenne_twister_vector_init(vector, N);
+ ok &= mersenne_twister_vector_init(vector, N);
77
}
78
- ok |= mersenne_twister_vector_update(vector);
+ ok &= mersenne_twister_vector_update(vector);
79
idx = 0;
80
81
assert(ok);
0 commit comments