If a call to setSeed
had not occurred previously, the first call to this method forces this SecureRandom object to seed itself. This self-seeding will not occur if setSeed
was previously called.
@param bytes the array to be filled in with random bytes.
The method {@code nextBytes} is implemented by class {@code Random}as if by:
{@code}public void nextBytes(byte[] bytes) for (int i = 0; i < bytes.length; ) for (int rnd = nextInt(), n = Math.min(bytes.length - i, 4); n-- > 0; rnd >>= 8) bytes[i++] = (byte)rnd; }}@param bytes the byte array to fill with random bytes @throws NullPointerException if the byte array is null @since 1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|