SecureRandom.next
Class Overview | Class Members |
This Package |
All Packages
protected final int next( int numBits )
Parameters
- numBits
- number of pseudo-random bits to be generated, where
0 <= numBits <= 32.
Description
Generates an integer containing the user-specified number of
pseudo-random bits (right justified, with leading zeros). This
method overrides a java.util.Random method, and serves
to provide a source of random bits to all of the methods inherited
from that class (for example, nextInt,
nextLong, and nextFloat).
Overrides
next in class Random