org.logi.crypto.random
Interface Seedable
- All Known Implementing Classes:
- RandomMD5
- public interface Seedable
This interface will mostly be implemented by random number generators
which can inject entropy into an entropy pool. Calling
setSeed
on any such RNG is guaranteed to not decrease the
entropy in the pool.
Method Summary |
void |
setSeed(byte[] seed,
int off,
int len)
Add the bytes from seed[off..off+len-1] to
the entropy pool. |
void |
setSeed(long seed)
Add the number seed to the entropy pool. |
setSeed
public void setSeed(byte[] seed,
int off,
int len)
- Add the bytes from
seed[off..off+len-1]
to
the entropy pool.
setSeed
public void setSeed(long seed)
- Add the number
seed
to the entropy pool.
Copyright 1997-2000 Logi Ragnarsson