MCPcopy Create free account
hub / github.com/core-lib/xjar / nextInt

Method nextInt

src/main/java/io/xjar/key/XSecureRandom.java:60–79  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58 }
59
60 public int nextInt() {
61 int val = 0;
62
63 val |= nextValue() << 24;
64 val |= nextValue() << 16;
65
66 if (_intPad == 2) {
67 _intPad--;
68 } else {
69 val |= nextValue() << 8;
70 }
71
72 if (_intPad == 1) {
73 _intPad--;
74 } else {
75 val |= nextValue();
76 }
77
78 return val;
79 }
80
81
82 public long nextLong() {

Callers

nothing calls this directly

Calls 1

nextValueMethod · 0.95

Tested by

no test coverage detected