1 #ifndef MY_RANDOM_INCLUDED
2 #define MY_RANDOM_INCLUDED
3 
4 /*
5    Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved.
6 
7    This program is free software; you can redistribute it and/or modify
8    it under the terms of the GNU General Public License, version 2.0,
9    as published by the Free Software Foundation.
10 
11    This program is also distributed with certain software (including
12    but not limited to OpenSSL) that is licensed under separate terms,
13    as designated in a particular file or component or in included license
14    documentation.  The authors of MySQL hereby grant you an additional
15    permission to link the program and your derivative works with the
16    separately licensed software that they have included with MySQL.
17 
18    This program is distributed in the hope that it will be useful,
19    but WITHOUT ANY WARRANTY; without even the implied warranty of
20    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21    GNU General Public License, version 2.0, for more details.
22 
23    You should have received a copy of the GNU General Public License
24    along with this program; if not, write to the Free Software
25    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA */
26 
27 /*
28   A wrapper to use OpenSSL PRNGs.
29 */
30 
31 #include <my_global.h>
32 #include <mysql_com.h>
33 #include <limits.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 double my_rnd_ssl(struct rand_struct *rand_st);
40 int my_rand_buffer(unsigned char *buffer, size_t buffer_size);
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif /* MY_RANDOM_INCLUDED */
47