]> granicus.if.org Git - php/commit
Expose php_random_bytes as a first-class API within internals
authorAnthony Ferrara <ircmaxell@gmail.com>
Tue, 8 Dec 2015 12:12:45 +0000 (13:12 +0100)
committerAnatol Belski <ab@php.net>
Tue, 8 Dec 2015 12:12:45 +0000 (13:12 +0100)
commit908f67b1d44521aaac61e725290f3dc8a3fddcc7
tree77aadd90da17fa92e01704fc9f04c1850d6d1a1e
parent0495bf5650995cd8f18d6a9909eb4c5dcefde669
Expose php_random_bytes as a first-class API within internals

This also defines two macros: php_random_bytes_throw and php_random_bytes_silent depending on use case which will throw exceptions or not respectively
ext/standard/php_random.h
ext/standard/random.c