protected synchronized void engineSetSeed(byte[] seed){
  if (seed == null) {
    throw new NullPointerException("seed == null");
  }
  if (state == NEXT_BYTES) {
    System.arraycopy(copies,HASHCOPY_OFFSET,this.seed,HASH_OFFSET,EXTRAFRAME_OFFSET);
  }
  state=SET_SEED;
  if (seed.length != 0) {
    updateSeed(seed);
  }
}

protected synchronized void engineSetSeed ( byte [ ] seed ) { if ( seed == null ) { throw new NullPointerException ( "seed == null" ) ; } if ( state == NEXT_BYTES ) { System . arraycopy ( copies , HASHCOPY_OFFSET , this . seed , HASH_OFFSET , EXTRAFRAME_OFFSET ) ; } state = SET_SEED ; if ( seed . length != 0 ) { updateSeed ( seed ) ; } }
changes current seed by supplementing a seed argument to the current seed , if this already set ; the argument is used as first seed otherwise . < br > the method overrides " enginesetseed ( byte [ ] ) " in class securerandomspi .
