public class PRNG extends Object implements VertxContextPRNG
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
nextBytes(byte[] bytes)
Fills the given byte array with random bytes.
|
int |
nextInt()
Returns a secure random int
|
int |
nextInt(int bound)
Returns a secure random int, between 0 (inclusive) and the specified bound (exclusive).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcurrent, current, current, nextStringpublic PRNG(Vertx vertx)
public void close()
public void nextBytes(byte[] bytes)
VertxContextPRNGnextBytes in interface VertxContextPRNGbytes - a byte array.public int nextInt()
VertxContextPRNGnextInt in interface VertxContextPRNGpublic int nextInt(int bound)
VertxContextPRNGnextInt in interface VertxContextPRNGbound - the upper bound (exclusive), which must be positive.Copyright © 2021 Eclipse. All rights reserved.