Lines Matching refs:seed
47 private static native byte[] generateSeed(int length, byte[] seed);
56 * Reseeds this random object. The given seed supplements, rather than
57 * replaces, the existing seed. Thus, repeated calls are guaranteed
60 * @param seed the seed.
62 protected void engineSetSeed(byte[] seed) {
63 if (seed != null) {
64 generateSeed(-1, seed);
82 * Returns the given number of seed bytes. This call may be used to
83 * seed other random number generators.
85 * @param numBytes the number of seed bytes to generate.
87 * @return the seed bytes.
90 byte[] seed = generateSeed(numBytes, null);
92 if (seed == null) {
93 throw new ProviderException("Error generating seed bytes");
95 return seed;