mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Update gun.js
This commit is contained in:
parent
9f3d4080a5
commit
d2ee2e94b5
4
gun.js
4
gun.js
@ -788,7 +788,7 @@
|
||||
Util.text.random = function(l, c){
|
||||
var s = '';
|
||||
l = l || 24; // you are not going to make a 0 length random number, so no need to check type
|
||||
c = c || '0123456789ABCDEFGHIJKLMNOPQRSTUVWXZabcdefghiklmnopqrstuvwxyz';
|
||||
c = c || '0123456789ABCDEFGHIJKLMNOPQRSTUVWXZabcdefghijklmnopqrstuvwxyz';
|
||||
while(l > 0){ s += c.charAt(Math.floor(Math.random() * c.length)); l-- }
|
||||
return s;
|
||||
}
|
||||
@ -1308,4 +1308,4 @@
|
||||
}
|
||||
return r;
|
||||
}());
|
||||
}({}));
|
||||
}({}));
|
||||
|
Loading…
x
Reference in New Issue
Block a user