System::Security::Cryptography::RandomNumberGenerator クラス
RandomNumberGenerator class
ランダム数ジェネレータが継承すべき抽象クラスです。このクラスのオブジェクトは System::MakeObject() 関数を使用してのみ割り当てるべきです。スタック上や operator new を使用してこの型のインスタンスを作成しないでください。そうしないと実行時エラーやアサーション失敗が発生します。常にこのクラスを System::SmartPtr ポインタでラップし、そのポインタを関数の引数として使用してください。
class RandomNumberGenerator : public virtual System::Object
メソッド
| メソッド | 説明 |
|---|---|
| static Create() | 暗号用ランダム数ジェネレータのデフォルト実装のインスタンスを作成します。ランダムデータの生成に使用できます。未実装です。 |
| virtual GetBytes(ArrayPtr<uint8_t>) | 既存の配列要素をランダムバイトで埋めます。 |
| virtual GetBytes(ArrayPtr<uint8_t>, int, int) | 既存の配列スライスをランダムバイトで埋めます。 |
| virtual GetBytes(System::Details::ArrayView<uint8_t>) | 既存の配列ビュー要素をランダムバイトで埋めます。 |
| virtual GetBytes(System::Details::ArrayView<uint8_t>, int, int) | 既存の配列ビューのスライスをランダムバイトで埋めます。 |
| GetBytes(System::Details::StackArray<uint8_t, N>&) | 既存のスタック配列要素をランダムバイトで埋めます。 |
| GetBytes(System::Details::StackArray<uint8_t, N>&, int, int) | 既存のスタック配列スライスをランダムバイトで埋めます。 |
| virtual GetNonZeroBytes(ArrayPtr<uint8_t>) | 既存の配列要素をランダムな非ゼロバイトで埋めます。 |
| virtual GetNonZeroBytes(System::Details::ArrayView<uint8_t>) | 既存の配列ビュー要素をランダムな非ゼロバイトで埋めます。 |
| GetNonZeroBytes(System::Details::StackArray<uint8_t, N>&) | 既存のスタック配列要素をランダムな非ゼロバイトで埋めます。 |
参照
- Class Object
- Namespace System::Security::Cryptography
- Library Aspose.Page for C++