▸ getRandomValues(options): GetRandomValuesResult
description Obtaining cryptographically secure random numbers. This api is not excatly the
same as the web crypto api. But you can acheive the same goal. Check the example below.
remark supported jssdk > 4.27.0
example
Code
Parameters
| Name | Type |
|---|---|
options | GetRandomValuesOptions |
Returns
GetRandomValuesResult
Interface: GetRandomValuesOptions
| Name | Type | Description |
|---|---|---|
| length | number |
Interface: GetRandomValuesResult
| Name | Type | Description |
|---|---|---|
| randomValues | ArrayBuffer |
此页面是否有帮助?
Last modified on