MCPcopy Index your code
hub / github.com/node-modules/utility / randomString

Function randomString

benchmark/random_string.cjs:5–7  ·  view source on GitHub ↗
(length)

Source from the content-addressed store, hash-verified

3const utility = require('../');
4
5function randomString(length) {
6 return crypto.randomBytes(length).toString('base64');
7}
8
9function pseudoRandomString(length) {
10 return crypto.pseudoRandomBytes(length).toString('base64');

Callers 1

random_string.cjsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…