Click or drag to resize

RandomInt64Between Method

Generates a cryptographically strong 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.218-beta+101eee949414e414795e55a6e73d88938f0177b8
Syntax
public static long Int64Between(
	long startNumber,
	long stopNumber
)
View Source

Parameters

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

Return Value

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