mirror of
https://github.com/ZZZure/ZZZ-Plugin.git
synced 2025-12-16 13:17:32 +00:00
fix:mysapi
This commit is contained in:
parent
4c90ca5354
commit
2aa5a5bb4f
1 changed files with 9 additions and 0 deletions
|
|
@ -298,3 +298,12 @@ export default class MysZZZApi extends MysApi {
|
|||
return _data.data;
|
||||
}
|
||||
}
|
||||
|
||||
export function generateSeed(length = 16) {
|
||||
const characters = '0123456789abcdef';
|
||||
let result = '';
|
||||
for (let i = 0; i < length; i++) {
|
||||
result += characters[Math.floor(Math.random() * characters.length)];
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue