generate id's correctly

This commit is contained in:
Geoff Schmidt
2012-07-27 00:08:33 -07:00
parent f61d15e3eb
commit 492bf11fcf

View File

@@ -18,7 +18,7 @@ _.extend(Spark._Renderer.prototype, {
var chars =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
for (var i = 0; i < 8; i++) {
id += hexDigits.substr(Math.floor(Meteor.random() * 0x10), 1);
id += hexDigits.substr(Math.floor(Meteor.random() * 64), 1);
}
return id;
},