- init win32 rng context once per process

This commit is contained in:
Pierre Joye 2011-06-16 01:31:10 +00:00
parent b498b5dfe5
commit 23c4c46b36
3 changed files with 63 additions and 11 deletions

View file

@ -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