## RNGCryptoServiceProvider::GetNonZeroBytes(ArrayPtr\<uint8_t\>) method


Fills existing array elements with random non-zero bytes.

```cpp
void System::Security::Cryptography::RNGCryptoServiceProvider::GetNonZeroBytes(ArrayPtr<uint8_t> bytes) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | ArrayPtr\<uint8_t\> | Bytes array to fill. |

## See Also

* Typedef [ArrayPtr](../../../system/arrayptr/)
* Class [RNGCryptoServiceProvider](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.PDF for C++](../../../)
## RNGCryptoServiceProvider::GetNonZeroBytes(System::Details::ArrayView\<uint8_t\>) method


Fills existing array view elements with random non-zero bytes.

```cpp
void System::Security::Cryptography::RNGCryptoServiceProvider::GetNonZeroBytes(System::Details::ArrayView<uint8_t> bytes) override
```


| Parameter | Type | Description |
| --- | --- | --- |
| bytes | System::Details::ArrayView\<uint8_t\> | Bytes array view to fill. |

## See Also

* Class [RNGCryptoServiceProvider](../)
* Namespace [System::Security::Cryptography](../../)
* Library [Aspose.PDF for C++](../../../)
