summaryrefslogtreecommitdiff
path: root/ext/standard/php_random.h
diff options
context:
space:
mode:
authorSammyK <sammyk@sammykmedia.com>2015-02-12 20:53:55 -0600
committerNikita Popov <nikic@php.net>2015-05-09 21:57:50 +0200
commitbc54d139aab546d90244504d92de288533477b0e (patch)
tree4b165f42c8b77b97e2540e767559f7a23cdddec1 /ext/standard/php_random.h
parent8f9f21e8d24c1b48dc271330e38f2931086c0c94 (diff)
downloadphp-git-bc54d139aab546d90244504d92de288533477b0e.tar.gz
Initial implementation for CSPRNG API
Diffstat (limited to 'ext/standard/php_random.h')
-rw-r--r--ext/standard/php_random.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/ext/standard/php_random.h b/ext/standard/php_random.h
new file mode 100644
index 0000000000..1be5894a63
--- /dev/null
+++ b/ext/standard/php_random.h
@@ -0,0 +1,33 @@
+/*
+ +----------------------------------------------------------------------+
+ | PHP Version 7 |
+ +----------------------------------------------------------------------+
+ | Copyright (c) 1997-2015 The PHP Group |
+ +----------------------------------------------------------------------+
+ | This source file is subject to version 3.01 of the PHP license, |
+ | that is bundled with this package in the file LICENSE, and is |
+ | available through the world-wide-web at the following url: |
+ | http://www.php.net/license/3_01.txt |
+ | If you did not receive a copy of the PHP license and are unable to |
+ | obtain it through the world-wide-web, please send a note to |
+ | license@php.net so we can mail you a copy immediately. |
+ +----------------------------------------------------------------------+
+ | Authors: Sammy Kaye Powers <me@sammyk.me> |
+ +----------------------------------------------------------------------+
+*/
+
+/* $Id$ */
+
+#ifndef PHP_RANDOM_H
+#define PHP_RANDOM_H
+
+PHP_FUNCTION(random_bytes);
+PHP_FUNCTION(random_int);
+#endif
+
+/*
+ * Local variables:
+ * tab-width: 4
+ * c-basic-offset: 4
+ * End:
+ */