MCPcopy Create free account
hub / github.com/spotbugs/spotbugs / randomInt2

Method randomInt2

spotbugsTestCases/src/java/BadRandomInt.java:36–39  ·  view source on GitHub ↗
(int n)

Source from the content-addressed store, hash-verified

34 }
35
36 @ExpectWarning("DMI")
37 static int randomInt2(int n) {
38 return new Random().nextInt(n);
39 }
40
41 @ExpectWarning("DMI")
42 static int randomInt3() {

Callers

nothing calls this directly

Calls 1

nextIntMethod · 0.80

Tested by

no test coverage detected