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