For the latest news and information visit
The GNU Crypto project

gnu.crypto.prng
Interface EntropySource


public interface EntropySource

A generic interface for adding random bytes to an entropy pool.


Method Summary
 byte[] nextBytes()
          Returns a new buffer with the next random bytes to add.
 double quality()
          Returns the estimated quality of this source.
 

Method Detail

quality

double quality()
Returns the estimated quality of this source. This value should be between 0 and 100 (the running quality is computed as a percentage, 100 percent being perfect-quality).

Returns:
The quality.

nextBytes

byte[] nextBytes()
Returns a new buffer with the next random bytes to add.

Returns:
The next random bytes.

For the latest news and information visit
The GNU Crypto project

Copyright © 2001, 2002, 2003 Free Software Foundation, Inc. All Rights Reserved.