diff --git a/core/instruct0.html b/core/instruct0.html index ef237b5..52e1d53 100644 --- a/core/instruct0.html +++ b/core/instruct0.html @@ -3,4 +3,4 @@

Please enter a unique subject identifier; No more than 30 characters, alphanumeric only.

- + diff --git a/core/js/IAT.js b/core/js/IAT.js index 8cd3717..3ebedd1 100644 --- a/core/js/IAT.js +++ b/core/js/IAT.js @@ -4,7 +4,7 @@ sub = ''; function randomString(length) { var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; var result = ''; - for (var i = length; i > 0; --i) result += chars[Math.round(Math.random() * (chars.length - 1))]; + for (var i = length; i > 0; --i) result += chars.charAt(Math.floor(Math.random() * (chars.length - 1))); return result; }