mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

ludovicp
29.03.2008 71a45361f7336cb5866734f85cf68b4f672c94c3
Fix an issue reported by FindBugs where a random value is permanently coerced to int 0
1 files modified
2 ■■■ changed files
opends/src/server/org/opends/server/replication/server/ReplicationServer.java 2 ●●● patch | view | raw | blame | history
opends/src/server/org/opends/server/replication/server/ReplicationServer.java
@@ -329,7 +329,7 @@
        synchronized (this)
        {
          /* check if we are connected every second */
          int randomizer = (int) Math.random()*100;
          int randomizer = (int)(Math.random()*100);
          wait(1000 + randomizer);
        }
      } catch (InterruptedException e)