(size: number = 10)
| 34 | |
| 35 | // Returns a new random alphanumeric string suitable for object ID. |
| 36 | export function newObjectId(size: number = 10): string { |
| 37 | return randomString(size); |
| 38 | } |
| 39 | |
| 40 | // Returns a new random hex string suitable for secure tokens. |
| 41 | export function newToken(): string { |
no test coverage detected