vendor/libhydrogen/impl/core.h in dualcone-0.0.1 vs vendor/libhydrogen/impl/core.h in dualcone-1.0.0
- old
+ new
@@ -1,11 +1,9 @@
int
hydro_init(void)
{
- if (hydro_random_init() != 0) {
- abort();
- }
+ hydro_random_ensure_initialized();
return 0;
}
void
hydro_memzero(void *pnt, size_t len)
@@ -86,10 +84,10 @@
hex_pos++;
continue;
}
break;
}
- c_val = (uint8_t)((c_num0 & c_num) | (c_alpha0 & c_alpha));
+ c_val = (uint8_t) ((c_num0 & c_num) | (c_alpha0 & c_alpha));
if (bin_pos >= bin_maxlen) {
ret = -1;
errno = ERANGE;
break;
}