first commit
This commit is contained in:
commit
db5762abd4
687 files changed
+171307
No files matched your search
@@ -0,0 +1,21 @@
|
||||
function e(e = 12) {
|
||||
let t = (e) => e[Math.floor(Math.random() * e.length)],
|
||||
n = [
|
||||
t(`abcdefghjkmnpqrstuvwxyz`),
|
||||
t(`ABCDEFGHJKMNPQRSTUVWXYZ`),
|
||||
t(`23456789`),
|
||||
],
|
||||
r = Array.from(
|
||||
{
|
||||
length: Math.max(0, e - n.length),
|
||||
},
|
||||
() => t(`abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ23456789`),
|
||||
),
|
||||
i = [...n, ...r];
|
||||
for (let e = i.length - 1; e > 0; e--) {
|
||||
let t = Math.floor(Math.random() * (e + 1));
|
||||
[i[e], i[t]] = [i[t], i[e]];
|
||||
}
|
||||
return i.join(``);
|
||||
}
|
||||
export { e as t };
|
||||
Reference in new issue
Block a user