1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00
Files
archived-php-src/ext/standard/tests/random/random_bytes.phpt
SammyK dd2692621d Add tests for CSPRNG, fix C99 comments
Also replace one return; with RETURN_FALSE; for consistency.
2015-05-09 22:29:26 +02:00

15 lines
194 B
PHP

--TEST--
Test normal operation of random_bytes()
--FILE--
<?php
//-=-=-=-
var_dump(strlen(bin2hex(random_bytes(16))));
var_dump(is_string(random_bytes(10)));
?>
--EXPECT--
int(32)
bool(true)