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 4ceeddb commit 5b05b64Copy full SHA for 5b05b64
src/main/java/com/fasterxml/uuid/impl/RandomBasedGenerator.java
@@ -23,12 +23,6 @@
23
*/
24
public class RandomBasedGenerator extends NoArgGenerator
25
{
26
- /**
27
- * Default shared random number generator, used if no random number generator
28
- * is explicitly specified for instance
29
- */
30
- protected static Random _sharedRandom = null;
31
-
32
/**
33
* Random number generator that this generator uses.
34
@@ -51,10 +45,8 @@ public RandomBasedGenerator(Random rnd)
51
45
52
46
if (rnd == null) {
53
47
rnd = LazyRandom.sharedSecureRandom();
54
- _secureRandom = true;
55
- } else {
56
- _secureRandom = (rnd instanceof SecureRandom);
57
48
}
49
+ _secureRandom = (rnd instanceof SecureRandom);
58
50
_random = rnd;
59
60
0 commit comments