mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-01-01 10:19:12 +08:00
Generate sessionids that follow the same pattern as Valve's
This commit is contained in:
parent
f8852ba6c4
commit
c290e16dc5
2
index.js
2
index.js
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user