jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.18k stars 1.73k forks source link

Module.getRandromValue function not exist #953

Closed DiachenkoIgor closed 4 years ago

DiachenkoIgor commented 4 years ago

After building library for webassembly using script emscripten.sh, i have received error "Module.getRandromValue function not exist". I checked file libsodium/src/libsodium/randombytes/randombytes.c and added logging. I understood, that function "randombytes_stir" never calls , so function isn't configured. However, i checked "master" branch and i noticed changes. With "master" changes my project started to work. Why doesn't "stable" brunch have this changes? In your wiki you said that if i want to use library, you have to download "stable" brunch.

jedisct1 commented 4 years ago

Check out https://github.com/jedisct1/libsodium.js