(int numBytes)
| 41 | } |
| 42 | |
| 43 | public static byte[] random(int numBytes) { |
| 44 | if (numBytes <= 0) { |
| 45 | throw new IllegalArgumentException("numBytes argument must be >= 0"); |
| 46 | } |
| 47 | byte[] bytes = new byte[numBytes]; |
| 48 | Randoms.secureRandom().nextBytes(bytes); |
| 49 | return bytes; |
| 50 | } |
| 51 | |
| 52 | public static byte[] toBytes(int i) { |
| 53 | return new byte[]{ |
no test coverage detected