version 1.1, 2012/02/21 23:47:57
|
version 1.1.1.3, 2013/07/22 01:31:55
|
Line 2
|
Line 2
|
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| PHP Version 5 | |
| PHP Version 5 | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| Copyright (c) 1997-2012 The PHP Group | | | Copyright (c) 1997-2013 The PHP Group | |
+----------------------------------------------------------------------+ |
+----------------------------------------------------------------------+ |
| This source file is subject to version 3.01 of the PHP license, | |
| This source file is subject to version 3.01 of the PHP license, | |
| that is bundled with this package in the file LICENSE, and is | |
| that is bundled with this package in the file LICENSE, and is | |
Line 1387 PHP_FUNCTION(mcrypt_create_iv)
|
Line 1387 PHP_FUNCTION(mcrypt_create_iv)
|
} |
} |
|
|
iv = ecalloc(size + 1, 1); |
iv = ecalloc(size + 1, 1); |
| |
if (source == RANDOM || source == URANDOM) { |
if (source == RANDOM || source == URANDOM) { |
#if PHP_WIN32 |
#if PHP_WIN32 |
/* random/urandom equivalent on Windows */ |
/* random/urandom equivalent on Windows */ |