mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
26 lines
382 B
PHP
26 lines
382 B
PHP
<?php
|
|
if (!function_exists('random_bytes')) {
|
|
/**
|
|
* @param int $bytes
|
|
*
|
|
* @return void
|
|
*/
|
|
function random_bytes($bytes)
|
|
{
|
|
throw new \Exception('bad');
|
|
}
|
|
}
|
|
|
|
if (!function_exists('new_random_bytes')) {
|
|
/**
|
|
* @param int $bytes
|
|
*
|
|
* @return int
|
|
*/
|
|
function new_random_bytes($bytes)
|
|
{
|
|
return 5;
|
|
}
|
|
}
|
|
|