mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Rename randombytes_salsa20 to randombytes_internal and switch to ChaCha20
This commit is contained in:
@@ -71,8 +71,9 @@ randombytes_tests(void)
|
||||
assert(randombytes_uniform(1U) == 0U);
|
||||
randombytes_close();
|
||||
#ifndef __EMSCRIPTEN__
|
||||
randombytes_set_implementation(&randombytes_salsa20_implementation);
|
||||
assert(strcmp(randombytes_implementation_name(), "salsa20") == 0);
|
||||
assert(&randombytes_internal_implementation == &randombytes_salsa20_implementation);
|
||||
randombytes_set_implementation(&randombytes_internal_implementation);
|
||||
assert(strcmp(randombytes_implementation_name(), "internal") == 0);
|
||||
#endif
|
||||
randombytes_stir();
|
||||
for (i = 0; i < 256; ++i) {
|
||||
|
||||
Reference in New Issue
Block a user