Skip to content

Commit 5b05b64

Browse files
committed
Minor dead code elimination (from #96)
1 parent 4ceeddb commit 5b05b64

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/main/java/com/fasterxml/uuid/impl/RandomBasedGenerator.java

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@
2323
*/
2424
public class RandomBasedGenerator extends NoArgGenerator
2525
{
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-
3226
/**
3327
* Random number generator that this generator uses.
3428
*/
@@ -51,10 +45,8 @@ public RandomBasedGenerator(Random rnd)
5145
{
5246
if (rnd == null) {
5347
rnd = LazyRandom.sharedSecureRandom();
54-
_secureRandom = true;
55-
} else {
56-
_secureRandom = (rnd instanceof SecureRandom);
5748
}
49+
_secureRandom = (rnd instanceof SecureRandom);
5850
_random = rnd;
5951
}
6052

0 commit comments

Comments
 (0)