Skip to content

Commit

Permalink
Guard random_bytes() declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
dshafik committed Apr 28, 2017
1 parent 9b6de17 commit 346852f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/random_bytes.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
* @param $size
* @return string
*/
function random_bytes($size)
{
return __FUNCTION__;
}
if (!function_exists("random_bytes")) {
function random_bytes($size)
{
return __FUNCTION__;
}
}

0 comments on commit 346852f

Please sign in to comment.