Urara-Blog/node_modules/.pnpm-store/v3/files/89/fcb05a1b5ebbfe5778631a1c308278225a3021f09a8873b9cf203fb551890f3724a6a36faa9f13fe91b6811f2546c3571d4d370ea066ad8164c13fcbd85ea8
2022-08-14 01:14:53 +08:00

17 lines
444 B
Text

/**
Generate a [cryptographically strong](https://en.m.wikipedia.org/wiki/Strong_cryptography) random string.
@param length - Length of the returned string.
@returns A [`hex`](https://en.wikipedia.org/wiki/Hexadecimal) string.
@example
```
import cryptoRandomString = require('crypto-random-string');
cryptoRandomString(10);
//=> '2cf05d94db'
```
*/
declare function cryptoRandomString(length: number): string;
export = cryptoRandomString;