Only try to use crypto.randomBytes if env is node
Merge pull request #1 from gaye/node-crypto-randomBytes

Only try to use crypto.randomBytes if env is node