Completed
Push — master ( b5ea1e...13004a )
by Scott
02:00
created
lib/random.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -200,8 +200,8 @@
 block discarded – undo
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)
Please login to merge, or discard this patch.
lib/random_bytes_dev_urandom.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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
             /**
Please login to merge, or discard this patch.
other/ide_stubs/libsodium.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         {
Please login to merge, or discard this patch.
lib/random_int.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,6 +184,6 @@
 block discarded – undo
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
Please login to merge, or discard this patch.