feat: 企业联调
This commit is contained in:
9
hx-op/src/util/generateRandomString.ts
Normal file
9
hx-op/src/util/generateRandomString.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function generateRandomString(length: number) {
|
||||
let result = '';
|
||||
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
const charactersLength = characters.length;
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
||||
}
|
||||
return result;
|
||||
}
|
Reference in New Issue
Block a user