public class

BouncyCastleRandom

extends Object
implements Random
java.lang.Object
   ↳ net.schmizz.sshj.transport.random.BouncyCastleRandom

Class Overview

BouncyCastle 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.

Summary

Nested Classes
class BouncyCastleRandom.Factory Named factory for the BouncyCastle Random  
Fields
private final RandomGenerator random
Public Constructors
BouncyCastleRandom()
Public Methods
void fill(byte[] bytes, int start, int len)
Fill part of bytes with random values.
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.transport.random.Random

Fields

private final RandomGenerator random

Public Constructors

public BouncyCastleRandom ()

Public Methods

public void fill (byte[] bytes, int start, int len)

Fill part of bytes with random values.

Parameters
bytes Byte array to be filled.
start Index to start filling at.
len Length of segment to fill.