mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
random: Add PHPAPI to all php_random_algo definitions (#14088)
The php_random.h header already defines them as `PHPAPI` and they actually are part of the public API. Co-authored-by: Arnaud Le Blanc <arnaud.lb@gmail.com>
This commit is contained in:
@@ -101,7 +101,7 @@ static bool unserialize(void *state, HashTable *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_combinedlcg = {
|
||||
PHPAPI const php_random_algo php_random_algo_combinedlcg = {
|
||||
sizeof(php_random_status_state_combinedlcg),
|
||||
generate,
|
||||
range,
|
||||
|
||||
@@ -228,7 +228,7 @@ static bool unserialize(void *state, HashTable *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_mt19937 = {
|
||||
PHPAPI const php_random_algo php_random_algo_mt19937 = {
|
||||
sizeof(php_random_status_state_mt19937),
|
||||
generate,
|
||||
range,
|
||||
|
||||
@@ -105,7 +105,7 @@ static bool unserialize(void *state, HashTable *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_pcgoneseq128xslrr64 = {
|
||||
PHPAPI const php_random_algo php_random_algo_pcgoneseq128xslrr64 = {
|
||||
sizeof(php_random_status_state_pcgoneseq128xslrr64),
|
||||
generate,
|
||||
range,
|
||||
|
||||
@@ -46,7 +46,7 @@ static zend_long range(void *state, zend_long min, zend_long max)
|
||||
return result;
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_secure = {
|
||||
PHPAPI const php_random_algo php_random_algo_secure = {
|
||||
0,
|
||||
generate,
|
||||
range,
|
||||
|
||||
@@ -73,7 +73,7 @@ static zend_long range(void *state, zend_long min, zend_long max)
|
||||
}, min, max);
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_user = {
|
||||
PHPAPI const php_random_algo php_random_algo_user = {
|
||||
sizeof(php_random_status_state_user),
|
||||
generate,
|
||||
range,
|
||||
|
||||
@@ -154,7 +154,7 @@ static bool unserialize(void *state, HashTable *data)
|
||||
return true;
|
||||
}
|
||||
|
||||
const php_random_algo php_random_algo_xoshiro256starstar = {
|
||||
PHPAPI const php_random_algo php_random_algo_xoshiro256starstar = {
|
||||
sizeof(php_random_status_state_xoshiro256starstar),
|
||||
generate,
|
||||
range,
|
||||
|
||||
Reference in New Issue
Block a user