diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-07 00:42:47 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-07 00:42:47 +0000 |
commit | 57bd5201004b032e700b6a58004bdcba9c54fb1c (patch) | |
tree | 3852c60b34ad74d16465af30d3df2a99b2617d2a | |
parent | 177c420f8ac4f7783bee0b1101873983bca7c444 (diff) | |
download | php-openid-57bd5201004b032e700b6a58004bdcba9c54fb1c.zip php-openid-57bd5201004b032e700b6a58004bdcba9c54fb1c.tar.gz php-openid-57bd5201004b032e700b6a58004bdcba9c54fb1c.tar.bz2 |
[project @ Change getBytes to actually honor the constant indicating where to go for random bytes]
-rw-r--r-- | Net/OpenID/CryptUtil.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php index a94ce24..0ce8f60 100644 --- a/Net/OpenID/CryptUtil.php +++ b/Net/OpenID/CryptUtil.php @@ -50,7 +50,7 @@ class Net_OpenID_CryptUtil { function getBytes($num_bytes) { $bytes = ''; - $f = @fopen("/dev/urandom", "r"); + $f = @fopen(Net_OpenID_RAND_SOURCE, "r"); if ($f === false) { if (!defined('Net_OpenID_USE_INSECURE_RAND')) { trigger_error('Set Net_OpenID_USE_INSECURE_RAND to ' . |