41 |
import java.util.Random; |
import java.util.Random; |
42 |
import java.util.Enumeration; |
import java.util.Enumeration; |
43 |
|
|
44 |
|
import gnu.java.security.Engine; |
45 |
|
|
46 |
/** |
/** |
47 |
* An interface to a cryptographically secure pseudo-random number |
* An interface to a cryptographically secure pseudo-random number |
48 |
* generator (PRNG). Random (or at least unguessable) numbers are used |
* generator (PRNG). Random (or at least unguessable) numbers are used |
236 |
Engine.getInstance(SECURE_RANDOM, algorithm, provider), |
Engine.getInstance(SECURE_RANDOM, algorithm, provider), |
237 |
provider); |
provider); |
238 |
} |
} |
239 |
|
catch (java.lang.reflect.InvocationTargetException ite) |
240 |
|
{ |
241 |
|
throw new NoSuchAlgorithmException(algorithm); |
242 |
|
} |
243 |
catch (ClassCastException cce) |
catch (ClassCastException cce) |
244 |
{ |
{ |
245 |
throw new NoSuchAlgorithmException(algorithm); |
throw new NoSuchAlgorithmException(algorithm); |