1 |
|
/* |
2 |
|
* Written by Doug Lea and Bill Scherer with assistance from members |
3 |
|
* of JCP JSR-166 Expert Group and released to the public domain, as |
4 |
< |
* explained at http://creativecommons.org/licenses/publicdomain |
4 |
> |
* explained at http://creativecommons.org/publicdomain/zero/1.0/ |
5 |
|
*/ |
6 |
|
|
7 |
|
import java.util.*; |
705 |
|
|
706 |
|
int seed; |
707 |
|
RNG(int seed) { this.seed = seed; } |
708 |
< |
RNG() { this.seed = seedGenerator.nextInt() | 1; } |
708 |
> |
RNG() { this.seed = seedGenerator.nextInt() | 1; } |
709 |
|
|
710 |
|
int next() { |
711 |
|
int x = seed; |