+2
−0
+6
−4
+2
−1
+4
−1
+4
−1
Loading
These functions must really never fail; so have crypto_rand() assert that it's working okay, and have crypto_seed_rng() demand that callers check its return value. Also have crypto_seed_rng() check RAND_status() before returning.