Generate sessionids that follow the same pattern as Valve's

This commit is contained in:
Alexander Corn 2015-12-26 18:19:35 -05:00
parent f8852ba6c4
commit c290e16dc5

View File

@ -230,7 +230,7 @@ SteamCommunity.prototype.getSessionID = function() {
};
function generateSessionID() {
return Math.floor(Math.random() * 1000000000);
return require('crypto').randomBytes(12).toString('hex');
}
SteamCommunity.prototype.parentalUnlock = function(pin, callback) {