Interface Random

All Known Implementing Classes:
BouncyCastleRandom, JCERandom, SingletonRandomFactory

public interface Random
A pseudo random number generator.
  • Method Summary

    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 Details

    • fill

      void fill(byte[] bytes)
      Fill the array of bytes with random values.
      Parameters:
      bytes - byte array to be filled.
    • fill

      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.