diff options
author | Aaron Piotrowski <aaron@trowski.com> | 2016-06-10 22:02:23 -0500 |
---|---|---|
committer | Aaron Piotrowski <aaron@trowski.com> | 2016-06-10 22:02:23 -0500 |
commit | e3c681aa5cc71122a8d2fae42e6513fc413ccac8 (patch) | |
tree | 5f1df62f7b666028edb0ee1adf083a52d63df45a /ext/standard/php_random.h | |
parent | fb4e3085cbaa76eb8f28eebf848a81d1c0190067 (diff) | |
parent | 792e89385ca6fc722a03590722eb7745a2374720 (diff) | |
download | php-git-e3c681aa5cc71122a8d2fae42e6513fc413ccac8.tar.gz |
Merge branch 'master' into throw-error-in-extensions
Diffstat (limited to 'ext/standard/php_random.h')
-rw-r--r-- | ext/standard/php_random.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/standard/php_random.h b/ext/standard/php_random.h index ecf9c7135b..c4034e7d8d 100644 --- a/ext/standard/php_random.h +++ b/ext/standard/php_random.h @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP Version 7 | +----------------------------------------------------------------------+ - | Copyright (c) 1997-2015 The PHP Group | + | Copyright (c) 1997-2016 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 | @@ -31,6 +31,11 @@ typedef struct { int fd; } php_random_globals; +#define php_random_bytes_throw(b, s) php_random_bytes((b), (s), 1) +#define php_random_bytes_silent(b, s) php_random_bytes((b), (s), 0) + +PHPAPI int php_random_bytes(void *bytes, size_t size, zend_bool should_throw); + #ifdef ZTS # define RANDOM_G(v) ZEND_TSRMG(random_globals_id, php_random_globals *, v) extern PHPAPI int random_globals_id; |