react-native-get-random-values
react-native-get-random-values copied to clipboard
feat: rewrite to C++ with JSI
Closes #38
I didn't test this much but it works. This is my first time trying JSI, so I think this needs more testing and review.
It's about 48% faster if I did the benchmark correctly using console.time
.
References:
- https://blog.notesnook.com/getting-started-react-native-jsi/
- https://github.com/ammarahm-ed/react-native-jsi-template
- https://github.com/dcangulo/react-native-pkce-challenge/pull/122/files
- https://github.com/dsprenkels/randombytes
- https://android.googlesource.com/platform/bionic/+/master/libc/include/sys/random.h