(length: number)
| 14 | * @returns Uint8Array of random bytes |
| 15 | */ |
| 16 | export function generateRandomBytes(length: number): Uint8Array { |
| 17 | return crypto.getRandomValues(new Uint8Array(length)) |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * Generates a cryptographically secure random hex string. |
no outgoing calls
no test coverage detected