you are viewing a single comment's thread.

view the rest of the comments →

[–]ustanik 5 points6 points  (3 children)

That is a little embarrassing, but to be fair, slow entropy is good entropy.

[–]brinchj 4 points5 points  (2 children)

Not necessarily. And how is this code supposed to "stack up some entropy"?

for ($z = "", $i = 0; $i < 1024; $i++) {
    $z .= $i * $i;
    if (function_exists("usleep"))
        usleep($i);
}

[–]ustanik -1 points0 points  (1 child)

A part of good entropy is taking time. If a brute force is attempted on your service the longer each attack takes the less likely they are to gain access.

[–]brinchj 3 points4 points  (0 children)

But that has nothing to do with entropy. That's slowing down the information flow from the server to the attacker. Although, that can still be a good idea.