eugenehp / react-native-uuid

UUID generation for react-native.
MIT License
256 stars 36 forks source link

_rng is not a function #2

Closed GeoffreyPlitt closed 7 years ago

GeoffreyPlitt commented 8 years ago

This works fine when I run in simulator/etc.

But when I try to get my unit tests to pass (mocha/istanbul), I get the following error:

/Users/g/stardust-app/node_modules/react-native-uuid/uuid.js:121 var _seedBytes = _rng(); ^ TypeError: _rng is not a function

GeoffreyPlitt commented 8 years ago

@eugenehp Any ideas?

shamasis commented 7 years ago

crypto missing?

eugenehp commented 7 years ago

@GeoffreyPlitt just merged new PR. Let me know if it works for you.

GeoffreyPlitt commented 7 years ago

I changed my code so my tests used a different UUID function

eugenehp commented 7 years ago

@GeoffreyPlitt thanks. If you find time, let me know if this one works for you.

Thanks for starting the topic! 😃