Fix a possible crash in rand_drbg_get_entropy