PATH: //opt/alt/php81/usr/include/php/ext/standard
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 base64.h
↓
X
📄 basic_functions.h
↓
X
📄 basic_functions_arginfo.h
↓
X
📄 crc32.h
↓
X
📄 crc32_x86.h
↓
X
📄 credits.h
↓
X
📄 credits_ext.h
↓
X
📄 credits_sapi.h
↓
X
📄 crypt_blowfish.h
↓
X
📄 crypt_freesec.h
↓
X
📄 css.h
↓
X
📄 datetime.h
↓
X
📄 dir_arginfo.h
↓
X
📄 dl.h
↓
X
📄 dl_arginfo.h
↓
X
📄 exec.h
↓
X
📄 file.h
↓
X
📄 flock_compat.h
↓
X
📄 fsock.h
↓
X
📄 head.h
↓
X
📄 hrtime.h
↓
X
📄 html.h
↓
X
📄 html_tables.h
↓
X
📄 info.h
↓
X
📄 md5.h
↓
X
📄 pack.h
↓
X
📄 pageinfo.h
↓
X
📄 php_array.h
↓
X
📄 php_assert.h
↓
X
📄 php_browscap.h
↓
X
📄 php_crypt.h
↓
X
📄 php_crypt_r.h
↓
X
📄 php_dir.h
↓
X
📄 php_dns.h
↓
X
📄 php_ext_syslog.h
↓
X
📄 php_filestat.h
↓
X
📄 php_fopen_wrappers.h
↓
X
📄 php_http.h
↓
X
📄 php_image.h
↓
X
📄 php_incomplete_class.h
↓
X
📄 php_lcg.h
↓
X
📄 php_mail.h
↓
X
📄 php_math.h
↓
X
📄 php_mt_rand.h
↓
X
📄 php_net.h
↓
X
📄 php_password.h
↓
X
📄 php_rand.h
↓
X
📄 php_random.h
↓
X
📄 php_smart_string.h
↓
X
📄 php_smart_string_public.h
↓
X
📄 php_standard.h
↓
X
📄 php_string.h
↓
X
📄 php_uuencode.h
↓
X
📄 php_var.h
↓
X
📄 php_versioning.h
↓
X
📄 proc_open.h
↓
X
📄 quot_print.h
↓
X
📄 scanf.h
↓
X
📄 sha1.h
↓
X
📄 streamsfuncs.h
↓
X
📄 url.h
↓
X
📄 url_scanner_ex.h
↓
X
📄 user_filters_arginfo.h
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: php_rand.h
/* +----------------------------------------------------------------------+ | 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: | | https://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) ((zend_ulong) time(NULL) * (zend_ulong) GetCurrentProcessId())) ^ ((zend_long) (1000000.0 * php_combined_lcg()))) #else #define GENERATE_SEED() (((zend_long) ((zend_ulong) time(NULL) * (zend_ulong) 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 */
SIMPAN PERUBAHAN