Class BouncyCastleRandom
- java.lang.Object
-
- net.schmizz.sshj.transport.random.BouncyCastleRandom
-
- All Implemented Interfaces:
Random
public class BouncyCastleRandom extends java.lang.Object implements Random
BouncyCastleRandom
. 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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BouncyCastleRandom.Factory
Named factory for the BouncyCastleRandom
-
Constructor Summary
Constructors Constructor Description BouncyCastleRandom()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fill(byte[] bytes)
Fill the array of bytes with random values.void
fill(byte[] bytes, int start, int len)
Fill part of bytes with random values.
-
-
-
Method Detail
-
fill
public void fill(byte[] bytes, int start, int len)
Description copied from interface:Random
Fill part of bytes with random values.
-
-