php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_random_csprng.h File Reference
#include "php.h"

Go to the source code of this file.

Functions

ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_bytes (void *bytes, size_t size, bool should_throw)
 
ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_bytes_ex (void *bytes, size_t size, char *errstr, size_t errstr_size)
 
ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_int (zend_long min, zend_long max, zend_long *result, bool should_throw)
 
PHPAPI void php_random_csprng_shutdown (void)
 

Function Documentation

◆ php_random_bytes()

ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_bytes ( void * bytes,
size_t size,
bool should_throw )

Definition at line 213 of file csprng.c.

◆ php_random_bytes_ex()

ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_bytes_ex ( void * bytes,
size_t size,
char * errstr,
size_t errstr_size )

Definition at line 69 of file csprng.c.

◆ php_random_csprng_shutdown()

PHPAPI void php_random_csprng_shutdown ( void )

Definition at line 267 of file csprng.c.

◆ php_random_int()

ZEND_ATTRIBUTE_NONNULL PHPAPI zend_result php_random_int ( zend_long min,
zend_long max,
zend_long * result,
bool should_throw )

Definition at line 225 of file csprng.c.