public class

JCERandom

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

Class Overview

A Random implementation using the built-in SecureRandom PRNG.

Summary

Nested Classes
class JCERandom.Factory Named factory for the JCE Random  
Fields
private final SecureRandom random
private byte[] tmp
Public Constructors
JCERandom()
Public Methods
synchronized void fill(byte[] foo, int start, int len)
Fill the given byte-array with random bytes from this PRNG.
[Expand]
Inherited Methods
From class java.lang.Object
From interface net.schmizz.sshj.transport.random.Random

Fields

private final SecureRandom random

private byte[] tmp

Public Constructors

public JCERandom ()

Public Methods

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

Fill the given byte-array with random bytes from this PRNG.

Parameters
foo The byte-array
start The offset to start at
len The number of bytes to fill