public class AWT10SeedGenerator extends HashObjectSeedGenerator
HashObjectSeedGenerator
and uses its API, see there for more documentation.HashObjectSeedGenerator
,
AWT11SeedGenerator
seedGenListener
Constructor and Description |
---|
AWT10SeedGenerator()
Generate a seed generator for the default number of random bits
(currently 136).
|
AWT10SeedGenerator(int numBits)
Generate a seed generator for the specified number of bits.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEvent(java.awt.Event event)
Deprecated.
use addSeedObject() instead.
|
protected int |
extractSeedData(java.lang.Object obj)
Add the given object to the seed.
|
addSeedObject, getMessageDigest, getSeed, getStatus, reinit, updateHash, updateHash, updateHash
getDefault, getSeedLength, hasSeedLengthChanged, setDefault, setSeedLength
callSeedGenListener, getDefault, getDefaultSeedGenerator, seedAvailable, setDefaultSeedGenerator, setSeedGenListener
public AWT10SeedGenerator(int numBits)
public AWT10SeedGenerator()
public boolean addEvent(java.awt.Event event)
protected int extractSeedData(java.lang.Object obj) throws java.lang.IllegalArgumentException
java.awt.Event
. This method will hash the current time,
the toString() representation of the event, and System.identityHashCode().
The uncertainty per event is assumed to be 3 bits.
This method is called by addSeedObject()
with the object
passed to it.extractSeedData
in class HashObjectSeedGenerator
RandomException
- if obj is not a subclass of java.awt.Eventjava.lang.IllegalArgumentException