Closed GoogleCodeExporter closed 9 years ago
Have tested the GenerateGarbage() function in a for-loop, repeated it about
10-20 times. If you echo or var_dump() the output, you can clearly see the
difference in output length.
Original comment by fwp...@gmail.com
on 20 Oct 2012 at 9:24
Tested it in a for-loop once more. This time with increasing length, to see
whether the length discrepancy grows: it does.
When generating a random string of 10 characters long, the output varies in
length 0-2 characters.
When generating a random string of 50 characters long, the output varies in
length 0-5 characters.
When generating a random string of 160 characters long, the output varies in
length 0-9 characters.
Original comment by fwp...@gmail.com
on 22 Oct 2012 at 5:55
When generating a random string of 1000 characters long, the output varies in
length 8-29 characters. Not one of them is actually the desired 1000 chars long.
Original comment by fwp...@gmail.com
on 22 Oct 2012 at 5:59
Note to self: substr(x,y,z) expects two indexes and a length, rand(x,y) gives a
value between x and y inclusive... I forgot to subtract 1 from
$CharsToChooseFromLength... D'oh!
Original comment by fwp...@gmail.com
on 22 Oct 2012 at 6:19
Original issue reported on code.google.com by
fwp...@gmail.com
on 20 Oct 2012 at 9:23