mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-27 06:37:32 +02:00
Beep
This commit is contained in:
@@ -43,7 +43,7 @@ module.exports = class CaptchaQuizCommand extends Command {
|
|||||||
randomText(len) {
|
randomText(len) {
|
||||||
const pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split('');
|
const pool = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ23456789'.split('');
|
||||||
const result = [];
|
const result = [];
|
||||||
for (let i = 0; i > len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]);
|
for (let i = 0; i < len; i++) result.push(pool[Math.floor(Math.random() * pool.length)]);
|
||||||
return result.join('');
|
return result.join('');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user