## RandomNumberGenerator::GetNonZeroBytes(ArrayPtr\<uint8_t\>) method


Fills existing array elements with random non-zero bytes.

```cpp
virtual void System::Security::Cryptography::RandomNumberGenerator::GetNonZeroBytes(ArrayPtr<uint8_t> bytes)
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | ArrayPtr\<uint8_t\> | Bytes array to fill. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
## RandomNumberGenerator::GetNonZeroBytes(System::Details::ArrayView\<uint8_t\>) method


Fills existing array view elements with random non-zero bytes.

```cpp
virtual void System::Security::Cryptography::RandomNumberGenerator::GetNonZeroBytes(System::Details::ArrayView<uint8_t> bytes)
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | System::Details::ArrayView\<uint8_t\> | Bytes array view to fill. |

## See Also

* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
## RandomNumberGenerator::GetNonZeroBytes(System::Details::StackArray\<uint8_t, N\>\&) method


Fills existing stack array elements with random non-zero bytes.

```cpp
template<std::size_t> void System::Security::Cryptography::RandomNumberGenerator::GetNonZeroBytes(System::Details::StackArray<uint8_t, N> &bytes)
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | System::Details::StackArray\<uint8_t, N\>\& | Bytes stack array to fill. |

## See Also

* Class [RandomNumberGenerator](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.Font for C++](../../../)
