@@ -200,8 +200,8 @@ |
||
200 | 200 | * We don't have any more options, so let's throw an exception right now |
201 | 201 | * and hope the developer won't let it fail silently. |
202 | 202 | * |
203 | - * @param mixed $length |
|
204 | - * @return void |
|
203 | + * @param integer $length |
|
204 | + * @return string |
|
205 | 205 | * @throws Exception |
206 | 206 | */ |
207 | 207 | function random_bytes($length) |
@@ -141,7 +141,7 @@ |
||
141 | 141 | /** |
142 | 142 | * @var string|bool |
143 | 143 | */ |
144 | - $buf = $buf . $read; |
|
144 | + $buf = $buf.$read; |
|
145 | 145 | } while ($remaining > 0); |
146 | 146 | |
147 | 147 | /** |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | * Generate a 16-bit integer |
27 | 27 | * /dev/urandom |
28 | 28 | * |
29 | - * @return int |
|
29 | + * @return string |
|
30 | 30 | */ |
31 | 31 | function randombytes_random16() |
32 | 32 | { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | * Generate a 16-bit integer |
69 | 69 | * /dev/urandom |
70 | 70 | * |
71 | - * @return int |
|
71 | + * @return string |
|
72 | 72 | */ |
73 | 73 | public static function randombytes_random16() |
74 | 74 | { |
@@ -184,6 +184,6 @@ |
||
184 | 184 | */ |
185 | 185 | } while (!is_int($val) || $val > $max || $val < $min); |
186 | 186 | |
187 | - return (int)$val; |
|
187 | + return (int) $val; |
|
188 | 188 | } |
189 | 189 | } |
190 | 190 | \ No newline at end of file |