Browse Source

rand: declare get_hardware_random_value() before use.

Introduced by #12923

Fixes #13004

Reviewed-by: Tim Hudson <tjh@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/13005)
master
Pauli 2 years ago
parent
commit
53c4992e0b
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      providers/implementations/rands/seeding/rand_cpu_x86.c

+ 2
- 1
providers/implementations/rands/seeding/rand_cpu_x86.c View File

@ -16,12 +16,13 @@
# if defined(OPENSSL_SYS_TANDEM) && defined(_TNS_X_TARGET)
# include <builtin.h> /* _rdrand64 */
# include <string.h> /* memcpy */
static size_t get_hardware_random_value(unsigned char *buf, size_t len);
# else
size_t OPENSSL_ia32_rdseed_bytes(unsigned char *buf, size_t len);
size_t OPENSSL_ia32_rdrand_bytes(unsigned char *buf, size_t len);
# endif
static size_t get_hardware_random_value(unsigned char *buf, size_t len);
/*
* Acquire entropy using Intel-specific cpu instructions
*


Loading…
Cancel
Save