Use default randombytes implementation for tests on emscripten

This commit is contained in:
Frank Denis 2017-12-21 02:02:39 +01:00
parent 13201046e6
commit dce1614eee

View File

@ -137,7 +137,9 @@ int main(void)
if (sodium_init() != 0) { if (sodium_init() != 0) {
return 99; return 99;
} }
#ifndef __EMSCRIPTEN__
randombytes_set_implementation(&randombytes_salsa20_implementation); randombytes_set_implementation(&randombytes_salsa20_implementation);
#endif
ts_start = now(); ts_start = now();
for (i = 0; i < ITERATIONS; i++) { for (i = 0; i < ITERATIONS; i++) {
if (xmain() != 0) { if (xmain() != 0) {