public class BouncyCastleRandom extends java.lang.Object implements Random
Random.
This pseudo random number generator uses the a very fast PRNG from BouncyCastle.
The JRE random will be used when creating a new generator to add some random
data to the seed.| Modifier and Type | Class and Description |
|---|---|
static class |
BouncyCastleRandom.Factory
Named factory for the BouncyCastle
Random |
| Constructor and Description |
|---|
BouncyCastleRandom() |
public void fill(byte[] bytes,
int start,
int len)
Randompublic int random(int n)
int
in the half-open range [0, n).protected final int next(int numBits)
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.