Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## net.sf.ntru
Class Prng

    java.lang.Object
      net.sf.ntru.Prng

    public class Prng

extends java.lang.Object

Field Summary
`private int` | `counter`
`private java.security.MessageDigest` | `hashAlg`
`private byte[]` | `seed`

Constructor Summary
`Prng(byte[] seed)`

Method Summary
`(package private) byte[]` | `nextBytes(int n)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### counter

    private int counter

### seed

    private byte[] seed

### hashAlg

    private java.security.MessageDigest hashAlg

Constructor Detail

### Prng

    Prng(byte[] seed)
    throws java.security.NoSuchAlgorithmException

Throws:
  `java.security.NoSuchAlgorithmException`

Method Detail

### nextBytes

    byte[] nextBytes(int n)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD