getRandomValues
Web Crypto-compatible getRandomValues: fills the provided typed array with cryptographically secure random bytes and returns it
import { getRandomValues } from "@roku-sdk/runtime/crypto";getRandomValues<T extends ArrayBufferView>(array: T): TDescription
Web Crypto-compatible getRandomValues: fills the provided typed array with cryptographically secure random bytes and returns it.
Parameters
| Name | Type | Description |
|---|---|---|
array | T | A typed array to fill in place. |
Return values
The same array reference, filled with random bytes.
Updated about 3 hours ago
What’s Next
Did this page help you?