note 93078 added to function.openssl-random-pseudo-bytes

From: Date: Fri, 21 Aug 2009 21:29:28 +0000
Subject: note 93078 added to function.openssl-random-pseudo-bytes
Groups: php.notes 
Request: Send a blank email to php-notes+get-159771@lists.php.net to get a copy of this message
If you don't have this function but you do have OpenSSL installed, you can always fake it: <?php function openssl_random_pseudo_bytes($length) { $length_n = (int) $length; // shell injection is no fun $handle = popen("/usr/bin/openssl rand $length_n", "r"); $data = stream_get_contents($handle); pclose($handle); return $data; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 72.204.204.169 ---- Manual Page -- http://www.php.net/manual/en/function.openssl-random-pseudo-bytes.php Edit -- https://master.php.net/note/edit/93078 Del: integrated -- https://master.php.net/note/delete/93078/integrated Del: useless -- https://master.php.net/note/delete/93078/useless Del: bad code -- https://master.php.net/note/delete/93078/bad+code Del: spam -- https://master.php.net/note/delete/93078/spam Del: non-english -- https://master.php.net/note/delete/93078/non-english Del: in docs -- https://master.php.net/note/delete/93078/in+docs Del: other reasons-- https://master.php.net/note/delete/93078 Reject -- https://master.php.net/note/reject/93078 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159771) next »