react-native-get-random-values icon indicating copy to clipboard operation
react-native-get-random-values copied to clipboard

feat: rewrite to C++ with JSI

Open dcangulo opened this issue 2 years ago • 0 comments

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

dcangulo avatar Jul 31 '22 05:07 dcangulo