# include "internal/evp_int.h"
# include <openssl/des.h>
# include <openssl/rand.h>
-# include <internal/rand.h>
-# include "evp_locl.h"
typedef struct {
union {
switch (type) {
case EVP_CTRL_RAND_KEY:
- if (c->drbg != NULL) {
- if (RAND_DRBG_bytes(c->drbg, ptr, 8) == 0)
- return 0;
- } else if (RAND_bytes(ptr, 8) <= 0) {
+ if (RAND_bytes(ptr, 8) <= 0)
return 0;
- }
DES_set_odd_parity((DES_cblock *)ptr);
return 1;