Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Rand bugfix #4982

Merged
merged 1 commit into from
Aug 19, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions library/Zend/Math/Rand.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ abstract class Rand
*/
public static function getBytes($length, $strong = false)
{
$length = (int) $length;

if ($length <= 0) {
return false;
}
Expand Down