Use random hex value instead of current time for deviceid

This commit is contained in:
Alexander Corn 2015-12-07 11:42:10 -05:00
parent 9175a44828
commit ff1c3279c8

View File

@ -141,7 +141,7 @@ SteamCommunity.prototype.respondToConfirmation = function(confID, confKey, time,
function request(community, url, key, time, tag, params, json, callback) { function request(community, url, key, time, tag, params, json, callback) {
params = params || {}; params = params || {};
params.p = "android:" + Date.now(); params.p = "android:" + require('crypto').randomBytes(16).toString('hex');
params.a = community.steamID.getSteamID64(); params.a = community.steamID.getSteamID64();
params.k = key; params.k = key;
params.t = time; params.t = time;