Lines Matching refs:algo
82 const php_random_algo *algo = engine.algo; in php_random_range32() local
91 php_random_result r = algo->generate(state); in php_random_range32()
127 php_random_result r = algo->generate(state); in php_random_range32()
141 const php_random_algo *algo = engine.algo; in php_random_range64() local
150 php_random_result r = algo->generate(state); in php_random_range64()
186 php_random_result r = algo->generate(state); in php_random_range64()
238 PHPAPI void *php_random_status_alloc(const php_random_algo *algo, const bool persistent) in php_random_status_alloc() argument
240 return algo->state_size > 0 ? pecalloc(1, algo->state_size, persistent) : NULL; in php_random_status_alloc()
243 PHPAPI void *php_random_status_copy(const php_random_algo *algo, void *old_status, void *new_status) in php_random_status_copy() argument
245 return memcpy(new_status, old_status, algo->state_size); in php_random_status_copy()
253 …gine_common_init(zend_class_entry *ce, zend_object_handlers *handlers, const php_random_algo *algo) in php_random_engine_common_init() argument
261 .algo = algo, in php_random_engine_common_init()
262 .state = php_random_status_alloc(algo, false) in php_random_engine_common_init()
282 new_engine->engine.algo = old_engine->engine.algo; in php_random_engine_common_clone_object()
284 …new_engine->engine.state = php_random_status_copy(old_engine->engine.algo, old_engine->engine.stat… in php_random_engine_common_clone_object()