gnu.crypto.prng
public class PRNGFactory extends Object implements Registry
A Factory to instantiate pseudo random number generators.
Version: $Revision: 1.10 $
Method Summary | |
---|---|
static IRandom | getInstance(String prng) Returns an instance of a padding algorithm given its name. |
static Set | getNames() Returns a Set of names of padding algorithms supported by this Factory. |
Returns an instance of a padding algorithm given its name.
Parameters: prng the case-insensitive name of the PRNG.
Returns: an instance of the pseudo-random number generator.
Throws: InternalError if the implementation does not pass its self- test.
Returns a Set of names of padding algorithms supported by this Factory.
Returns: a Set of pseudo-random number generator algorithm names (Strings).