MCPcopy Index your code
hub / github.com/ether/etherpad / randomString

Function randomString

src/node/utils/randomstring.ts:7–7  ·  view source on GitHub ↗
(len: number)

Source from the content-addressed store, hash-verified

5import cryptoMod from 'crypto';
6
7const randomString = (len: number) => cryptoMod.randomBytes(len).toString('hex');
8
9export default randomString;

Callers 6

reloadSettingsFunction · 0.70
SessionManager.tsFile · 0.50
addSavedRevisionMethod · 0.50
getReadOnlyIdFunction · 0.50
APIKeyHandler.tsFile · 0.50

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected