summaryrefslogtreecommitdiff
path: root/ext/mcrypt/php_mcrypt.h
diff options
context:
space:
mode:
authorLeigh <leigh@php.net>2015-03-27 14:33:30 +0100
committerJulien Pauli <jpauli@php.net>2015-05-13 14:18:32 +0200
commitc02c4aca007199057201b855f674b6baa9be4c6e (patch)
treea74b3d60ff32e974e2e150635d2c0d766b101420 /ext/mcrypt/php_mcrypt.h
parent43c24da166b090d4745293042ee995a0361c7ff0 (diff)
downloadphp-git-c02c4aca007199057201b855f674b6baa9be4c6e.tar.gz
Add file descriptor caching to mcrypt_create_iv()
This improves performance for applications that make repeated calls to mcrypt_create_iv()
Diffstat (limited to 'ext/mcrypt/php_mcrypt.h')
-rw-r--r--ext/mcrypt/php_mcrypt.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mcrypt/php_mcrypt.h b/ext/mcrypt/php_mcrypt.h
index 4bc226110b..9bfad99e9b 100644
--- a/ext/mcrypt/php_mcrypt.h
+++ b/ext/mcrypt/php_mcrypt.h
@@ -77,6 +77,7 @@ ZEND_BEGIN_MODULE_GLOBALS(mcrypt)
int le_h;
char *modes_dir;
char *algorithms_dir;
+ int fd[2]; // RANDOM = 0, URANDOM = 1
ZEND_END_MODULE_GLOBALS(mcrypt)
#ifdef ZTS