Click or drag to resize

RandomNumberGenerator Class

Represents the abstract class from which all implementations of cryptographic random number generators derive.
Inheritance Hierarchy
SystemObject
  Crestron.SimplSharp.CryptographyRandomNumberGenerator
    Crestron.SimplSharp.CryptographyRNGCryptoServiceProvider

Namespace: Crestron.SimplSharp.Cryptography
Assembly: SimplSharpCryptographyInterface (in SimplSharpCryptographyInterface.dll) Version: 2.21.121
Syntax
C#
public abstract class RandomNumberGenerator

The RandomNumberGenerator type exposes the following members.

Constructors
 NameDescription
Protected methodRandomNumberGenerator Initializes a new instance of Crestron.SimplSharp.Cryptography.RandomNumberGenerator.
Top
Methods
 NameDescription
Public methodStatic memberCreate Creates an instance of the default implementation of a cryptographic random number generator that can be used to generate random data.
Public methodStatic memberCreate(String) Creates an instance of the specified implementation of a cryptographic random number generator.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetBytes When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of values.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetNonZeroBytes When overridden in a derived class, fills an array of bytes with a cryptographically strong random sequence of nonzero values.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also