Freigeben über


SecureRandomSpi.EngineNextBytes Method

Definition

Overloads

EngineNextBytes(Byte[])

Generates a user-specified number of random bytes.

EngineNextBytes(Byte[], ISecureRandomParameters)

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

EngineNextBytes(Byte[])

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.

Some random number generators can only generate a limited amount of random bytes per invocation. If the size of bytes is greater than this limit, the implementation should invoke its generation process multiple times to completely fill the buffer before returning from this method.

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.

Applies to

EngineNextBytes(Byte[], ISecureRandomParameters)

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

[Android.Runtime.Register("engineNextBytes", "([BLjava/security/SecureRandomParameters;)V", "GetEngineNextBytes_arrayBLjava_security_SecureRandomParameters_Handler", ApiSince=35)]
protected virtual void EngineNextBytes (byte[]? bytes, Java.Security.ISecureRandomParameters? params);
[<Android.Runtime.Register("engineNextBytes", "([BLjava/security/SecureRandomParameters;)V", "GetEngineNextBytes_arrayBLjava_security_SecureRandomParameters_Handler", ApiSince=35)>]
abstract member EngineNextBytes : byte[] * Java.Security.ISecureRandomParameters -> unit
override this.EngineNextBytes : 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.

Some random number generators can only generate a limited amount of random bytes per invocation. If the size of bytes is greater than this limit, the implementation should invoke its generation process multiple times to completely fill the buffer before returning from this method.

Added in 9.

Java documentation for java.security.SecureRandomSpi.engineNextBytes(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