SecureRandomSpi.EngineNextBytes(Byte[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Generates a user-specified number of random bytes.
[Android.Runtime.Register("engineNextBytes", "([B)V", "GetEngineNextBytes_arrayBHandler")]
protected abstract void EngineNextBytes (byte[]? bytes);
[<Android.Runtime.Register("engineNextBytes", "([B)V", "GetEngineNextBytes_arrayBHandler")>]
abstract member EngineNextBytes : byte[] -> unit
Parameters
- bytes
- Byte[]
the array to be filled in with random bytes.
- Attributes
Remarks
Generates a user-specified number of random bytes.
If a call to engineSetSeed
had not occurred previously, the first call to this method forces this SecureRandom implementation to seed itself. This self-seeding will not occur if engineSetSeed
was previously called.
Java documentation for java.security.SecureRandomSpi.engineNextBytes(byte[])
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.