TypeScript API / laikacms/crypto / generateSecureRandomHex
Function: generateSecureRandomHex()
ts
function generateSecureRandomHex(length): string;Generate a cryptographically secure random hex string.
Parameters
| Parameter | Type | Description |
|---|---|---|
length | number | Desired length of the output string (in hex characters) |
Returns
string
Cryptographically secure hex string