Click or drag to resize

RandomUInt64Between Method

Generates a cryptographically strong unsigned 64-bit random integer between specified values. i.e. [startNumber-stopNumber)

Namespace: GSF.Security.Cryptography
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.253-beta+ffb7163c9e3b771705bc5b9aa3f09870f2cb9e2c
Syntax
public static ulong UInt64Between(
	ulong startNumber,
	ulong stopNumber
)
View Source

Parameters

startNumber  UInt64
A UInt64 that is the low end of our range.
stopNumber  UInt64
A UInt64 that is the high end of our range.

Return Value

UInt64
A UInt64 that is generated between the startNumber and the stopNumber.
Exceptions
ExceptionCondition
CryptographicExceptionThe cryptographic service provider (CSP) cannot be acquired.
See Also