dsprenkels / randombytes

A portable C library for generating cypto-secure random bytes
MIT License
96 stars 37 forks source link

use nodejs crypto api when building with emscripten #8

Closed jaromil closed 6 years ago

jaromil commented 6 years ago

Adds simple support to use the crypto api provided by nodejs when cross-building using emscripten.

dsprenkels commented 6 years ago

I propose the following patches (and pushed them to jaromil:emscripten-1).

Would you agree to the proposed changes? Did I miss something?

jaromil commented 6 years ago

Much better now. I realise I won't be able on the short term to make an emscripten compatible test to work in the CI, but if you like to merge it anyway go ahead.

dsprenkels commented 6 years ago

Way ahead of ya. ;)

Thanks a lot for your contribution!