protected synchronized byte[] engineGenerateSeed(int numBytes){
  byte[] myBytes;
  if (numBytes < 0) {
    throw new NegativeArraySizeException(Integer.toString(numBytes));
  }
  if (numBytes == 0) {
    return EmptyArray.BYTE;
  }
  if (myRandom == null) {
    myRandom=new SHA1PRNG_SecureRandomImpl();
    myRandom.engineSetSeed(getRandomBytes(DIGEST_LENGTH));
  }
  myBytes=new byte[numBytes];
  myRandom.engineNextBytes(myBytes);
  return myBytes;
}

protected synchronized byte [ ] engineGenerateSeed ( int numBytes ) { byte [ ] myBytes ; if ( numBytes < 0 ) { throw new NegativeArraySizeException ( Integer . toString ( numBytes ) ) ; } if ( numBytes == 0 ) { return EmptyArray . BYTE ; } if ( myRandom == null ) { myRandom = new SHA1PRNG_SecureRandomImpl ( ) ; myRandom . engineSetSeed ( getRandomBytes ( DIGEST_LENGTH ) ) ; } myBytes = new byte [ numBytes ] ; myRandom . engineNextBytes ( myBytes ) ; return myBytes ; }
returns a required number of random bytes . < br > the method overrides " enginegenerateseed ( int ) " in class securerandomspi . < br >
