Name
JRandom
Synopsis
This class provides an implementation of the secure random generator. It is commonly used, as the initialization of secret keys requires a source of random numbers. Instances of this class are constructed directly.
public class JRandom extends java.util.Random { // Public Constructors public JRandom() throws jxta.security.exceptions.CryptoException; public JRandom(long lseed) throws jxta.security.exceptions.CryptoException; // Public Instance Methods public void generateData(byte[ ] buffer, int offset, int length); public void setSeed(byte[ ] buffer, int offset, int length); public String whoami(); // Public Methods Overriding Random public void nextBytes(byte[ ] buff); public int nextInt(); public long nextLong(); public void setSeed(long lseed); // synchronized // Protected Methods Overriding Random protected int next(int bits); // synchronized }
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.