Skip to content
This repository has been archived by the owner on Oct 20, 2022. It is now read-only.

Commit

Permalink
Modified session ID generation
Browse files Browse the repository at this point in the history
Following Erwin Steffens recommendation (#7)
  • Loading branch information
David Corvoysier committed Jan 6, 2015
1 parent 4864aaf commit cd53f4c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
// Copyright Orange 2014

module.exports.randomId = function() {
return String(Math.random() * Math.random()).substr(3);
// 'Stolen' from Autobahn.js
return Math.floor(Math.random() * 9007199254740992);
};

0 comments on commit cd53f4c

Please sign in to comment.