Skip to content
Snippets Groups Projects
Commit ca970b2a authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Fix truncated random data

parent 5fc563e3
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,6 @@ class Misc {
$loops = (int) (32 / $bits_per_char);
$output = '';
$ints = unpack('V*', $data);
array_shift($ints);
foreach ($ints as $int) {
for ($i = $loops; $i > 0; $i--) {
$output .= $chars[($int & $mask) % $char_count];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment