rewrite website
This commit is contained in:
5
src/util/random.ts
Normal file
5
src/util/random.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import * as crypto from 'crypto';
|
||||
|
||||
export function generateRandomString(length: number) {
|
||||
return crypto.randomBytes(length).toString('hex');
|
||||
}
|
||||
Reference in New Issue
Block a user