1 /*
2   +----------------------------------------------------------------------+
3   | PHP Version 5                                                        |
4   +----------------------------------------------------------------------+
5   | Copyright (c) 2013-2016 Jakub Zelenka                                |
6   +----------------------------------------------------------------------+
7   | This source file is subject to version 3.01 of the PHP license,      |
8   | that is bundled with this package in the file LICENSE, and is        |
9   | available through the world-wide-web at the following url:           |
10   | http://www.php.net/license/3_01.txt                                  |
11   | If you did not receive a copy of the PHP license and are unable to   |
12   | obtain it through the world-wide-web, please send a note to          |
13   | license@php.net so we can mail you a copy immediately.               |
14   +----------------------------------------------------------------------+
15   | Author: Jakub Zelenka <bukka@php.net>                                |
16   +----------------------------------------------------------------------+
17 */
18 
19 #ifndef PHP_CRYPTO_RAND_H
20 #define PHP_CRYPTO_RAND_H
21 
22 #include "php.h"
23 #include "php_crypto.h"
24 
25 #include <openssl/rand.h>
26 
27 /* Exceptions */
28 PHP_CRYPTO_EXCEPTION_EXPORT(Rand)
29 /* Error info */
30 PHP_CRYPTO_ERROR_INFO_EXPORT(Rand)
31 
32 /* Class entries */
33 extern PHP_CRYPTO_API zend_class_entry *php_crypto_rand_ce;
34 
35 /* Methods definitions */
36 PHP_MINIT_FUNCTION(crypto_rand);
37 PHP_CRYPTO_METHOD(Rand, generate);
38 PHP_CRYPTO_METHOD(Rand, seed);
39 PHP_CRYPTO_METHOD(Rand, cleanup);
40 PHP_CRYPTO_METHOD(Rand, loadFile);
41 PHP_CRYPTO_METHOD(Rand, writeFile);
42 
43 #endif	/* PHP_CRYPTO_RAND_H */
44 
45 /*
46  * Local variables:
47  * tab-width: 4
48  * c-basic-offset: 4
49  * End:
50  * vim600: noet sw=4 ts=4 fdm=marker
51  * vim<600: noet sw=4 ts=4
52  */
53