Module Implementation: OpenSSLCryptoInterfaceRNGNote: Internal classes are italicized and will only contain a short description.See the class-side examples in the OpenSSLRandomNumberGeneratorExamples class for additional usage detail.Mixes the num bytes at the string repr of anObject into the PRNG state. Entropy is an estimate of how much randomness is contained in anObject (measured in bytes.)Note: While this is used to force a seed of the RNG using the system entropy sources, you should consider adding your own seed via #seed: or #add:entropy: if you feel you need this.OpenSSL will auto-seed using this function internally when the RNG is initialized. Long-running server processes may wish reseed over some period of time but should not be called too often as this doesn't help increase entropy. If you believe you need to use this...refer to 'openssl discussion of Random_Numbers' first to understand exactly what this does.Answers numBytes worth of cryptographically strong pseudo-random bytes as a <ByteArray>. An error occurs if the PRNG has not been seeded with enough randomness to ensure an unpredictable byte sequence. OpenSSL will automatically seed when using this API.NOTE: aRange is EXCLUSIVE and this API answers an <OSSslBigNumber>.If you require the <EsRandom> interface, then call the #nextInt: compatibility method which will answer an <Integer> and aRange is INCLUSIVE.Mixes the num bytes at the string repr of anObject into the PRNG state.anObject - <Object>aRange - object that understands #asInteger, typically <Integer | OSSslBigNumber>
|