SecureRandom.GenerateSeed(Int32) Method

Definition

Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself.

[Android.Runtime.Register("generateSeed", "(I)[B", "GetGenerateSeed_IHandler")]
public virtual byte[]? GenerateSeed (int numBytes);
[<Android.Runtime.Register("generateSeed", "(I)[B", "GetGenerateSeed_IHandler")>]
abstract member GenerateSeed : int -> byte[]
override this.GenerateSeed : int -> byte[]

Parameters

numBytes
Int32

the number of seed bytes to generate.

Returns

Byte[]

the seed bytes.

Attributes

Remarks

Returns the given number of seed bytes, computed using the seed generation algorithm that this class uses to seed itself. This call may be used to seed other random number generators.

Java documentation for java.security.SecureRandom.generateSeed(int).

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