Reverting commit 8d6d088622 as per Gilles request.

The work on revamping the random packages is perfoemd in the random-ravamp branch.
This commit is contained in:
Luc Maisonobe 2016-01-17 11:35:24 +01:00
parent cf82e4cab4
commit 16f46dcc3d
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ public abstract class BaseRandomGenerator
int bits;
int val;
do {
bits = nextInt() >>> 1;
bits = (nextInt() >>> 1);
val = bits % n;
} while (bits - val + (n - 1) < 0);
return val;