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.

Version:
1.0.6

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.
 

Method Detail

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 (c) 1997-2001 Logi Ragnarsson - Distributed under the GPL