We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f57873 commit 85a7e6dCopy full SHA for 85a7e6d
src/net/sharksystem/asap/ASAP.java
@@ -26,6 +26,7 @@ public static int previousEra(int workingEra) {
26
*/
27
public static String createUniqueID() {
28
long now = System.currentTimeMillis();
29
+ long nowUnchanged = now;
30
31
/* now is a 64 bit value. Actually, only 63 bits are relevant because it is positive value.
32
Moreover, we are already in the 21. century - could reduce bit even more. We ignore that obvious fact
@@ -64,7 +65,7 @@ public static String createUniqueID() {
64
65
i = timeDigits;
66
67
// random digits
- long rValue = now + rest;
68
+ long rValue = now + nowUnchanged;
69
Random random = new Random(rValue);
70
for(int j = 0; j < randomDigits; j++) {
71
int r = random.nextInt(basis);
0 commit comments