SecureRandom.setSeed
Class Overview | Class Members |
This Package |
All Packages
public synchronized void setSeed( byte seed[] )
Parameters
- seed
- the seed.
Description
Reseeds this random object. The given seed supplements, rather than
replaces, the existing seed. Thus, repeated calls are guaranteed
never to reduce randomness.
public void setSeed( long seed )
Parameters
- seed
- the seed.
Description
Reseeds this random object, using the eight bytes contained
in the given long seed. The given seed supplements,
rather than replaces, the existing seed. Thus, repeated calls
are guaranteed never to reduce randomness.
This method is defined for compatibility with
java.util.Random.
Overrides
setSeed in class Random