fixed all random string functions

This commit is contained in:
Peter 'Pita' Martischka 2011-07-31 11:48:06 +01:00
parent c533837d06
commit aa5b1b85ae
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ function readCookie(name)
function randomString() function randomString()
{ {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var string_length = 20; var string_length = 20;
var randomstring = ''; var randomstring = '';
for (var i = 0; i < string_length; i++) for (var i = 0; i < string_length; i++)

View File

@ -43,7 +43,7 @@
} }
function randomString() { function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz"; var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
var string_length = 20; var string_length = 20;
var randomstring = ''; var randomstring = '';
for (var i=0; i<string_length; i++) { for (var i=0; i<string_length; i++) {