

```
1. typedef struct OH_CryptoRand OH_CryptoRand
```

## 概述

PhonePC/2in1TabletTVWearable

定义随机数生成器结构。

**起始版本：** 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)