In this question Erik needs to generate a secure random token in Node.js. There\'s the method crypto.randomBytes that generates a random Buffer. However, the ba
crypto.randomBytes
https://www.npmjs.com/package/crypto-extra has a method for it :)
var value = crypto.random(/* desired length */)