1 /* 2 * Copyright 1995-2020 The OpenSSL Project Authors. All Rights Reserved. 3 * 4 * Licensed under the Apache License 2.0 (the "License"). You may not use 5 * this file except in compliance with the License. You can obtain a copy 6 * in the file LICENSE in the source distribution or at 7 * https://www.openssl.org/source/license.html 8 */ 9 10 #include <e_os.h> 11 #include <openssl/macros.h> 12 #include <openssl/rand.h> 13 14 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32) 15 # include <windows.h> 16 # if OPENSSL_API_COMPAT < 0x10100000L 17 18 # define DEPRECATED_RAND_FUNCTIONS_DEFINED 19 RAND_event(UINT iMsg,WPARAM wParam,LPARAM lParam)20int RAND_event(UINT iMsg, WPARAM wParam, LPARAM lParam) 21 { 22 RAND_poll(); 23 return RAND_status(); 24 } 25 RAND_screen(void)26void RAND_screen(void) 27 { 28 RAND_poll(); 29 } 30 # endif 31 #endif 32 33 #ifndef DEPRECATED_RAND_FUNCTIONS_DEFINED 34 NON_EMPTY_TRANSLATION_UNIT 35 #endif 36