mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-01-23 02:35:34 +00:00
* chore: moved first files to esm * chore: moved first files to esm * chore: fix read only manager
9 lines
271 B
TypeScript
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;
|