LinusU / react-native-get-random-values

A small implementation of `getRandomValues` for React Native
MIT License
350 stars 48 forks source link

feat: rewrite to C++ with JSI #40

Closed dcangulo closed 1 year ago

dcangulo commented 2 years ago

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:

hannojg commented 1 year ago

Hm, may I propose to use codegen to generate the CPP bindings? That feels more future proof

efstathiosntonas commented 1 year ago

Hey folks, is there any update on this? Thanks