Constructors
Name | Description |
---|---|
SecureRandom() | This empty constructor automatically seeds the generator. |
SecureRandom(byte[]) | This constructor uses a user-provided seed in preference to the self-seeding algorithm referred to in the empty constructor description. |
Methods
Name | Description |
---|---|
getSeed(int) | Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself. |
next(int) | Generates an integer containing the user-specified number of pseudo-random bits (right justified, with leading zeros). |
nextBytes(byte[]) | Generates a user-specified number of random bytes. |
setSeed(byte[]) | Reseeds this random object. |
setSeed(long) | Reseeds this random object, using the eight bytes contained in the given long seed. |