This class provides a crytpographically strong pseudo-random number
generator based on the SHA-1 hash algorithm.
Note that if a seed is not provided, we attempt to provide sufficient
seed bytes to completely randomize the internal state of the generator
(20 bytes). However, our seed generation algorithm has not been thoroughly
studied or widely deployed.
Also note that when a random object is deserialized,
engineNextBytes invoked on the
restored random object will yield the exact same (random) bytes as the
original object. If this behaviour is not desired, the restored random
object should be seeded, using
engineSetSeed.
version: 1.10, 02/02/00 author: Benjamin Renaud author: Josh Bloch author: Gadi Guy |