Home
last modified time | relevance | path

Searched refs:getBytesFromString (Results 1 – 9 of 9) sorted by relevance

/php-src/ext/random/tests/03_randomizer/methods/
H A DgetBytesFromString_error.phpt2 Random: Randomizer: getBytesFromString(): Parameters are correctly validated
14 var_dump(randomizer()->getBytesFromString("", 2));
20 var_dump(randomizer()->getBytesFromString("abc", 0));
27 Random\Randomizer::getBytesFromString(): Argument #1 ($string) must not be empty
28 Random\Randomizer::getBytesFromString(): Argument #2 ($length) must be greater than 0
H A DgetBytesFromString.phpt2 Random: Randomizer: getBytesFromString(): Basic functionality
29 var_dump($randomizer->getBytesFromString('a', 10));
30 var_dump($randomizer->getBytesFromString(str_repeat('a', 256), 5));
33 $output = $randomizer->getBytesFromString(str_repeat('ab', $i), 500);
H A DgetBytesFromString_fast_path.phpt2 Random: Randomizer: getBytesFromString(): Fast Path Masking
29 $result = $r->getBytesFromString(substr($allBytes, 0, $i), 20000);
60 $result = $r->getBytesFromString(substr($allBytes, 0, $oneMore), 20000);
80 $result = $r->getBytesFromString($allBytes . $allBytes, 20000);
/php-src/ext/random/tests/03_randomizer/
H A Dengine_unsafe_biased.phpt65 var_dump(randomizer()->getBytesFromString('123', 10));
71 var_dump(randomizer()->getBytesFromString(str_repeat('a', 500), 10));
H A Dengine_unsafe_empty_string.phpt65 var_dump(randomizer()->getBytesFromString('123', 10));
71 var_dump(randomizer()->getBytesFromString(str_repeat('a', 500), 10));
H A Dengine_unsafe_nul.phpt65 var_dump(randomizer()->getBytesFromString('123', 10));
71 var_dump(randomizer()->getBytesFromString(str_repeat('a', 500), 10));
/php-src/ext/random/
H A Drandom.stub.php146 public function getBytesFromString(string $string, int $length): string {} function in Random\\Randomizer
H A Drandom_arginfo.h150 ZEND_METHOD(Random_Randomizer, getBytesFromString);
217 …ZEND_ME(Random_Randomizer, getBytesFromString, arginfo_class_Random_Randomizer_getBytesFromString,…
H A Drandomizer.c419 PHP_METHOD(Random_Randomizer, getBytesFromString) in PHP_METHOD() argument

Completed in 35 milliseconds