Skip to content

Commit

Permalink
Crank up that saltiness -- thanks @Plazmaz! (Note: This only affects …
Browse files Browse the repository at this point in the history
…apps which explicitly do not provide their own session secret. In production, this is always accompanied by a warning message regardless.)
  • Loading branch information
mikermcneil committed Mar 2, 2017
1 parent 8c7234d commit b13c078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/hooks/session/generateSecret.js
Expand Up @@ -14,7 +14,7 @@ module.exports = function generateSecret() {
// Combine random and case-specific factors into a base string
var factors = {
creationDate: (new Date()).getTime(),
random: Math.random() * (Math.random() * 1000),
random: crypto.randomBytes(64).toString('hex'),
nodeVersion: process.version
};
var basestring = '';
Expand Down

0 comments on commit b13c078

Please sign in to comment.