Exemplo n.º 1
0
  /** Constructs a new stream. */
  public GenF2w32() {
    if (!initialised) initialisation();

    // stream = polyBase.createElem();
    // substream = polyBase.createElem();
    stream = new int[R];
    substream = new int[R];
    state = new int[R];

    for (int i = 0; i < R; i++) stream[i] = curr_stream[i];
    // stream.copyFrom(curr_stream);

    advanceSeed(curr_stream, Apz);
    //      curr_stream = curr_stream.multiply(jumpZ);

    resetStartStream();
  }
Exemplo n.º 2
0
  public void resetNextSubstream() {
    advanceSeed(substream, Apw);
    //      substream = substream.multiply(jumpW);

    resetStartSubstream();
  }