|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.clazzes.optional.sec.NativeRandomGenerator
public class NativeRandomGenerator
A random generator, which uses the JRE implementation of a secure random generator. This class is thread-safe, so it may be used as a singleton.
Constructor Summary | |
---|---|
NativeRandomGenerator()
|
Method Summary | |
---|---|
void |
nextBytes(byte[] bytes)
Fill bytes with random values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NativeRandomGenerator()
Method Detail |
---|
public void nextBytes(byte[] bytes)
RandomGenerator
nextBytes
in interface RandomGenerator
bytes
- byte array to be filled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |