SecureRandom.GenerateSeed(Int32) 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.
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
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.