Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

18 rindas
444B

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