Partager via


SecureRandom.NextBytes(Byte[], ISecureRandomParameters) Method

Definition

Generates a user-specified number of random bytes with additional parameters.

[Android.Runtime.Register("nextBytes", "([BLjava/security/SecureRandomParameters;)V", "GetNextBytes_arrayBLjava_security_SecureRandomParameters_Handler", ApiSince=35)]
public virtual void NextBytes (byte[]? bytes, Java.Security.ISecureRandomParameters? params);
[<Android.Runtime.Register("nextBytes", "([BLjava/security/SecureRandomParameters;)V", "GetNextBytes_arrayBLjava_security_SecureRandomParameters_Handler", ApiSince=35)>]
override this.NextBytes : byte[] * Java.Security.ISecureRandomParameters -> unit

Parameters

bytes
Byte[]

the array to be filled in with random bytes

params
ISecureRandomParameters

additional parameters

Attributes

Remarks

Generates a user-specified number of random bytes with additional parameters.

Added in 9.

Java documentation for java.security.SecureRandom.nextBytes(byte[], java.security.SecureRandomParameters).

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.

Applies to