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)
This commit is contained in:
Pauli 2020-09-27 12:47:47 +10:00
parent 7339547d45
commit 53c4992e0b

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
*