1
0
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:
Tim Düsterhus
2024-04-30 21:01:13 +02:00
committed by GitHub
parent 8d67f23eb2
commit d5cc7e9109
6 changed files with 6 additions and 6 deletions

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,

View File

@@ -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,