public class HelixRandom extends Random
Constructor and Description |
---|
HelixRandom()
Creates a new HelixRandom using a generated seed.
|
HelixRandom(long seed)
Creates a new HelixRandom using the provided seed.
|
Modifier and Type | Method and Description |
---|---|
protected int |
next(int bits) |
void |
setSeed(long seed) |
public HelixRandom()
public HelixRandom(long seed)
seed
- the initial seedpublic void setSeed(long seed)
setSeed
in class Random
seed
- Random.setSeed(long)
protected int next(int bits)
Note that the bits argument is ignored by this implementation, as
the next word of Helix key stream should already satisfy the contract of
Random.next(int)
.
next
in class Random
bits
- Random.next(int)
Copyright © 2010-2015 Matthew Zipay. All Rights Reserved.