Skip to content

Instantly share code, notes, and snippets.

@FLYBYME
Created March 1, 2013 23:27
Show Gist options
  • Save FLYBYME/5068769 to your computer and use it in GitHub Desktop.
Save FLYBYME/5068769 to your computer and use it in GitHub Desktop.
Error: error:24064064:random number generator:SSLEAY_RAND_BYTES:PRNG not seeded
at Object.exports.uid (/node_modules/connect/lib/utils.js:133:17)
at MemoryStore.store.generate (/node_modules/connect/lib/middleware/session.js:204:27)
at generate (/node_modules/connect/lib/middleware/session.js:288:13)
at Object.session [as handle] (/node_modules/connect/lib/middleware/session.js:297:7)
at next (/node_modules/connect/lib/proto.js:190:15)
at Object.cookieParser [as handle] (/node_modules/connect/lib/middleware/cookieParser.js:60:5)
at next (/node_modules/connect/lib/proto.js:190:15)
at Object.favicon [as handle] (/node_modules/connect/lib/middleware/favicon.js:78:7)
at next (/node_modules/connect/lib/proto.js:190:15)
at Function.app.handle (/node_modules/connect/lib/proto.js:198:3)
var connect = require('connect'), http = require('http');
var app = connect()
.use(connect.favicon())
.use(connect.cookieParser())
.use(connect.session({ secret: 'keyboard cat', key: 'sid', cookie: { secure: true }}))
.use(connect.logger('dev')).use(function(request, response) {
response.writeHead(200, {
'Content-Type' : 'text/plain'
})
response.write('hello')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment