mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Make assertions more readable
This commit is contained in:
@@ -32,9 +32,9 @@ static int randombytes_tests(void)
|
||||
uint32_t n;
|
||||
|
||||
#ifdef __EMSCRIPTEN__
|
||||
assert(strcmp(randombytes_implementation_name(), "sysrandom"));
|
||||
assert(strcmp(randombytes_implementation_name(), "js") == 0);
|
||||
#else
|
||||
assert(strcmp(randombytes_implementation_name(), "js"));
|
||||
assert(strcmp(randombytes_implementation_name(), "sysrandom") == 0);
|
||||
#endif
|
||||
randombytes(x, 1U);
|
||||
do {
|
||||
|
||||
Reference in New Issue
Block a user