Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

18 Zeilen
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;