Files

20 lines
324 B
PHP
Raw Permalink Normal View History

2026-03-30 14:54:57 +07:00
<?php
namespace Safe;
use Safe\Exceptions\GmpException;
/**
2026-04-18 20:32:18 +07:00
* @param \GMP|int|string $seed
2026-03-30 14:54:57 +07:00
* @throws GmpException
*
*/
function gmp_random_seed($seed): void
{
error_clear_last();
$safeResult = \gmp_random_seed($seed);
if ($safeResult === false) {
throw GmpException::createFromPhpError();
}
}