42
42
random_is_faked (void)
44
/* We use a runtime check to allow for slow migrattion of libgcrypt.
45
We can't use the constant becuase that one is actually an enum
47
gpg_error_t err = gcry_control ( 51 /*GCRYCTL_FAKED_RANDOM_P*/, 0);
51
if (gpg_err_code (err) != GPG_ERR_INV_OP)
53
log_info ("WARNING: libgcrypt too old.\n");
54
log_info (" can't check whether we are in faked RNG mode\n");
55
return 0; /* Need to return false. */
44
return !!gcry_control ( GCRYCTL_FAKED_RANDOM_P, 0);