mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02:00
- init win32 rng context once per process
This commit is contained in:
parent
b498b5dfe5
commit
23c4c46b36
3 changed files with 63 additions and 11 deletions
|
@ -21,3 +21,11 @@ PHPAPI char *php_win_err(int error);
|
|||
#define php_win_err() php_win_err(GetLastError())
|
||||
int php_win32_check_trailing_space(const char * path, const int path_len);
|
||||
PHPAPI php_win32_get_random_bytes(unsigned char *buf, size_t size);
|
||||
|
||||
#ifdef ZTS
|
||||
void php_win32_init_rng_lock();
|
||||
void php_win32_free_rng_lock();
|
||||
#else
|
||||
#define php_win32_init_rng_lock();
|
||||
#define php_win32_free_rng_lock();
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue