(byte[] bytes)
| 67 | } |
| 68 | |
| 69 | public void nextBytes(byte[] bytes) { |
| 70 | final int length = bytes.length; |
| 71 | for (int i = 0; i < length;) { |
| 72 | int r = nextInt(); |
| 73 | for (int j = Math.min(length - i, 4); j > 0; --j) { |
| 74 | bytes[i++] = (byte) r; |
| 75 | r >>= 8; |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | public long nextLong() { |
| 81 | return ((long) next(32) << 32) + next(32); |
no test coverage detected