Check for `randomBytes` before trying to use Node.js crypto

Browserify's `require()` will return an empty Object here, which evaluates to
`true`, so check for the function we need before trying to use it.