- Timestamp:
- 03/08/2016 05:14:52 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/random_compat/random_bytes_dev_urandom.php
r35922 r36886 63 63 } 64 64 } 65 65 66 if (!empty($fp)) { 66 67 /** … … 80 81 } 81 82 } 83 82 84 try { 83 85 $bytes = RandomCompat_intval($bytes); … … 87 89 ); 88 90 } 91 89 92 if ($bytes < 1) { 90 93 throw new Error( … … 92 95 ); 93 96 } 97 94 98 /** 95 99 * This if() block only runs if we managed to open a file handle … … 102 106 $remaining = $bytes; 103 107 $buf = ''; 108 104 109 /** 105 110 * We use fread() in a loop to protect against partial reads … … 134 139 } 135 140 } 141 136 142 /** 137 143 * If we reach here, PHP has failed us.
Note: See TracChangeset
for help on using the changeset viewer.