Node.js random buffer generator