Class cryptix.math.PseudoRandomStream
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class cryptix.math.PseudoRandomStream

java.lang.Object
   |
   +----java.io.InputStream
           |
           +----cryptix.math.RandomStream
                   |
                   +----cryptix.math.PseudoRandomStream

public class PseudoRandomStream
extends RandomStream
class that produces psueodo random bytes

Copyright (C) 1995, 1996 Systemics Ltd (http://www.systemics.com/) All rights reserved.


Variable Index

 o buf
 o len
 o prng
 o ptr

Constructor Index

 o PseudoRandomStream(byte[])
Seed must be 20 bytes or greater (excess not used)

Method Index

 o nextBuffer()
 o nextByte()
 o seed(byte[])

Variables

 o prng
  protected PRSG prng
 o buf
  protected byte buf[]
 o ptr
  protected int ptr
 o len
  protected int len

Constructors

 o PseudoRandomStream
  public PseudoRandomStream(byte seed[])
Seed must be 20 bytes or greater (excess not used)

Methods

 o seed
  protected void seed(byte seed[])
Overrides:
seed in class RandomStream
 o nextBuffer
  protected void nextBuffer()
 o nextByte
  protected final synchronized byte nextByte()
Overrides:
nextByte in class RandomStream

All Packages  Class Hierarchy  This Package  Previous  Next  Index