etherpad-lite/src/node/utils/randomstring.ts
SamTV12345 920308a627
chore: moved first files to esm (#7061)
* chore: moved first files to esm

* chore: moved first files to esm

* chore: fix read only manager
2025-08-04 19:59:28 +02:00

9 lines
271 B
TypeScript

/**
* Generates a random String with the given length. Is needed to generate the
* Author, Group, readonly, session Ids
*/
import cryptoMod from 'crypto';
const randomString = (len: number) => cryptoMod.randomBytes(len).toString('hex');
export default randomString;