From 8d6d088622f8e4ea89e66ccbe097510fb4c932fd Mon Sep 17 00:00:00 2001 From: Gilles Date: Mon, 28 Dec 2015 18:18:25 +0100 Subject: [PATCH] Checkstyle. --- .../org/apache/commons/math4/random/BaseRandomGenerator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java b/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java index 2d78005aa..da801b03b 100644 --- a/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java +++ b/src/main/java/org/apache/commons/math4/random/BaseRandomGenerator.java @@ -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;