diff options
Diffstat (limited to 'Net/OpenID/CryptUtil.php')
-rw-r--r-- | Net/OpenID/CryptUtil.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Net/OpenID/CryptUtil.php b/Net/OpenID/CryptUtil.php new file mode 100644 index 0000000..4152c9c --- /dev/null +++ b/Net/OpenID/CryptUtil.php @@ -0,0 +1,10 @@ +<?php + +class Net_OpenID_CryptUtil { + function getBytes($num_bytes) { + $f = fopen("/dev/urandom", "r"); + $bytes = fread($f, $num_bytes); + fclose($f); + return $bytes; + } +} |