Commit f05551d2 authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Merge branch 'aripoll-auth-wtf' into 'master'

Aripoll auth wtf

See merge request !238
parents 90baaa8f b365336f
require('sbbsdefs.js', 'SYS_CLOSED');
function randomString(length) {
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split("");
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz'.split('');
var str = '';
for (var i = 0; i < length; i++) {
str += chars[Math.floor(Math.random() * chars.length)];
var rn = Math.floor(Math.random() * chars.length);
if (rn >= chars.length) log(LOG_DEBUG, "Impossible number: " + rn);
str += chars[rn];
}
return str;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment