# OH_CryptoRand

> phone 20+ | 2in1 20+ | tablet 20+ | tv 20+ | wearable 20+

```c
typedef struct OH_CryptoRand OH_CryptoRand
```

## 概述

> phone | 2in1 | tablet | tv | wearable

随机数生成器结构体，表示随机数生成器上下文。

**起始版本：** 20

**相关模块：** [CryptoRandApi](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-cryptorandapi)

**所在头文件：** [crypto_rand.h](https://developer.huawei.com/consumer/cn/doc/harmonyos-references/capi-crypto-rand-h)

