/
opt
/
cpanel
/
ea-php80
/
root
/
usr
/
include
/
php
/
ext
/
standard
/
/opt/cpanel/ea-php80/root/usr/include/php/ext/standard
mkdir
upload
Name
Size
Mode
Actions
base64.h
3678
0644
edit
dl
rm
basic_functions.h
5151
0644
edit
dl
rm
basic_functions_arginfo.h
126756
0644
edit
dl
rm
crc32.h
4603
0644
edit
dl
rm
crc32_x86.h
1861
0644
edit
dl
rm
credits.h
1562
0644
edit
dl
rm
credits_ext.h
5362
0644
edit
dl
rm
credits_sapi.h
835
0644
edit
dl
rm
crypt_blowfish.h
790
0644
edit
dl
rm
crypt_freesec.h
662
0644
edit
dl
rm
css.h
1070
0644
edit
dl
rm
datetime.h
1172
0644
edit
dl
rm
dir_arginfo.h
746
0644
edit
dl
rm
dl.h
1497
0644
edit
dl
rm
dl_arginfo.h
269
0644
edit
dl
rm
exec.h
1304
0644
edit
dl
rm
file.h
4006
0644
edit
dl
rm
flock_compat.h
2112
0644
edit
dl
rm
fsock.h
1247
0644
edit
dl
rm
head.h
1565
0644
edit
dl
rm
hrtime.h
2362
0644
edit
dl
rm
html.h
2405
0644
edit
dl
rm
html_tables.h
483597
0644
edit
dl
rm
info.h
23493
0644
edit
dl
rm
md5.h
1966
0644
edit
dl
rm
pack.h
1073
0644
edit
dl
rm
pageinfo.h
1180
0644
edit
dl
rm
php_array.h
2299
0644
edit
dl
rm
php_assert.h
1213
0644
edit
dl
rm
php_browscap.h
1135
0644
edit
dl
rm
php_crypt.h
1403
0644
edit
dl
rm
php_crypt_r.h
1679
0644
edit
dl
rm
php_dir.h
1313
0644
edit
dl
rm
php_dns.h
2643
0644
edit
dl
rm
php_ext_syslog.h
1277
0644
edit
dl
rm
php_filestat.h
2161
0644
edit
dl
rm
php_fopen_wrappers.h
1837
0644
edit
dl
rm
php_http.h
1477
0644
edit
dl
rm
php_image.h
2146
0644
edit
dl
rm
php_incomplete_class.h
2198
0644
edit
dl
rm
php_lcg.h
1343
0644
edit
dl
rm
php_mail.h
2215
0644
edit
dl
rm
php_math.h
3632
0644
edit
dl
rm
php_mt_rand.h
1851
0644
edit
dl
rm
php_net.h
1163
0644
edit
dl
rm
php_password.h
2839
0644
edit
dl
rm
php_rand.h
3067
0644
edit
dl
rm
php_random.h
1916
0644
edit
dl
rm
php_smart_string.h
1161
0644
edit
dl
rm
php_smart_string_public.h
1168
0644
edit
dl
rm
php_standard.h
1957
0644
edit
dl
rm
php_string.h
4054
0644
edit
dl
rm
php_uuencode.h
1205
0644
edit
dl
rm
php_var.h
3490
0644
edit
dl
rm
php_versioning.h
1211
0644
edit
dl
rm
proc_open.h
1702
0644
edit
dl
rm
quot_print.h
1255
0644
edit
dl
rm
scanf.h
1997
0644
edit
dl
rm
sha1.h
1570
0644
edit
dl
rm
streamsfuncs.h
1137
0644
edit
dl
rm
url.h
2140
0644
edit
dl
rm
url_scanner_ex.h
2373
0644
edit
dl
rm
user_filters_arginfo.h
987
0644
edit
dl
rm
Edit:
/opt/cpanel/ea-php80/root/usr/include/php/ext/standard/php_rand.h
(3067B)
/* +----------------------------------------------------------------------+ | Copyright (c) The PHP Group | +----------------------------------------------------------------------+ | This source file is subject to version 3.01 of the PHP license, | | that is bundled with this package in the file LICENSE, and is | | available through the world-wide-web at the following url: | | http://www.php.net/license/3_01.txt | | If you did not receive a copy of the PHP license and are unable to | | obtain it through the world-wide-web, please send a note to | | license@php.net so we can mail you a copy immediately. | +----------------------------------------------------------------------+ | Authors: Rasmus Lerdorf <rasmus@php.net> | | Zeev Suraski <zeev@php.net> | | Pedro Melo <melo@ip.pt> | | Sterling Hughes <sterling@php.net> | | | | Based on code from: Shawn Cokus <Cokus@math.washington.edu> | +----------------------------------------------------------------------+ */ #ifndef PHP_RAND_H #define PHP_RAND_H #include "php_lcg.h" #include "php_mt_rand.h" /* System Rand functions */ #ifndef RAND_MAX #define RAND_MAX PHP_MT_RAND_MAX #endif #define PHP_RAND_MAX PHP_MT_RAND_MAX /* * A bit of tricky math here. We want to avoid using a modulus because * that simply tosses the high-order bits and might skew the distribution * of random values over the range. Instead we map the range directly. * * We need to map the range from 0...M evenly to the range a...b * Let n = the random number and n' = the mapped random number * * Then we have: n' = a + n(b-a)/M * * We have a problem here in that only n==M will get mapped to b which # means the chances of getting b is much much less than getting any of # the other values in the range. We can fix this by increasing our range # artificially and using: # # n' = a + n(b-a+1)/M * # Now we only have a problem if n==M which would cause us to produce a # number of b+1 which would be bad. So we bump M up by one to make sure # this will never happen, and the final algorithm looks like this: # # n' = a + n(b-a+1)/(M+1) * * -RL */ #define RAND_RANGE_BADSCALING(__n, __min, __max, __tmax) \ (__n) = (__min) + (zend_long) ((double) ( (double) (__max) - (__min) + 1.0) * ((__n) / ((__tmax) + 1.0))) #ifdef PHP_WIN32 #define GENERATE_SEED() (((zend_long) (time(0) * GetCurrentProcessId())) ^ ((zend_long) (1000000.0 * php_combined_lcg()))) #else #define GENERATE_SEED() (((zend_long) (time(0) * getpid())) ^ ((zend_long) (1000000.0 * php_combined_lcg()))) #endif PHPAPI void php_srand(zend_long seed); PHPAPI zend_long php_rand(void); #endif /* PHP_RAND_H */
Save
cmd:
run