public class JceRandom extends Object implements Random
Random implementation using the built-in SecureRandom PRNG.| Modifier and Type | Class and Description |
|---|---|
static class |
JceRandom.Factory
Named factory for the BouncyCastle
Random |
| Constructor and Description |
|---|
JceRandom() |
| Modifier and Type | Method and Description |
|---|---|
void |
fill(byte[] foo,
int start,
int len)
Fill part of bytes with random values.
|
int |
random(int n)
Returns a pseudo-random uniformly distributed
int
in the half-open range [0, n). |
public void fill(byte[] foo,
int start,
int len)
RandomCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.