public class PRNG extends Object implements VertxContextPRNG
Constructor and Description |
---|
PRNG(io.vertx.core.Vertx vertx) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
current, current, current, nextString
public void close()
public void nextBytes(byte[] bytes)
VertxContextPRNG
nextBytes
in interface VertxContextPRNG
bytes
- a byte array.public int nextInt()
VertxContextPRNG
nextInt
in interface VertxContextPRNG
Copyright © 2018 Eclipse. All rights reserved.