com.opensymphony.module.random
Class Yarrow
java.lang.Object
java.util.Random
com.opensymphony.module.random.Yarrow
- All Implemented Interfaces:
- Serializable
- public final class Yarrow
- extends Random
This class represents a Pseudo Random Number Generator (PRNG)
as specified by the Yarrow documentation (www.counterpane.com/yarrow)
Most of the code in this class is based on FreeNet's Yarrow implementation.
- Author:
- Scott G. Miller , Victor Salaman
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZERO_ARRAY
public byte[] ZERO_ARRAY
Yarrow
public Yarrow()
acceptEntropy
public void acceptEntropy(Yarrow.EntropySource source,
long data,
int entropyGuess)
acceptTimerEntropy
public void acceptTimerEntropy(Yarrow.EntropySource timer)
makeKey
public void makeKey(byte[] entropy,
byte[] key,
int offset,
int len)
wipe
public void wipe(byte[] data)
next
protected int next(int bits)