├── .appveyor.yml ├── .appveyor ├── build.ps1 ├── install.ps1 ├── package.ps1 └── test.ps1 ├── .gitattributes ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .vscode └── c_cpp_properties.json ├── LICENSE ├── README.md ├── config.m4 ├── config.w32 ├── orng_compat.h ├── orng_util.h ├── package.xml ├── php_orng.c ├── php_orng.h ├── rng ├── glibcrand.c ├── glibcrand.h ├── glibcrand.stub.php ├── glibcrand_arginfo.h ├── glibcrand_arginfo_7.h ├── mt19937.c ├── mt19937.h ├── mt19937.stub.php ├── mt19937_arginfo.h ├── mt19937_arginfo_7.h ├── mt19937mb.stub.php ├── mt19937mb_arginfo.h ├── mt19937mb_arginfo_7.h ├── mt19937php.stub.php ├── mt19937php_arginfo.h ├── mt19937php_arginfo_7.h ├── rnginterface.c ├── rnginterface.h ├── rnginterface.stub.php ├── rnginterface_arginfo.h ├── rnginterface_arginfo_7.h ├── xorshift128plus.c ├── xorshift128plus.h ├── xorshift128plus.stub.php ├── xorshift128plus_arginfo.h └── xorshift128plus_arginfo_7.h ├── tests ├── 001_extension.phpt ├── 002_inheritance.phpt ├── 003_next.phpt ├── 004_range.phpt ├── 005_clone.phpt ├── 006_shuffle.phpt ├── 007_array_rand.phpt ├── 008_str_shuffle.phpt ├── 009_mb_mt19937.phpt ├── 010_serialize.phpt ├── 050_unexcepted_array_rand_empty.phpt ├── 050_unexcepted_array_rand_empty_7.phpt ├── 051_unexcepted_array_rand_over.phpt ├── 051_unexcepted_array_rand_over_7.phpt ├── 052_unexcepted_range.phpt ├── 052_unexcepted_range_7.phpt ├── 053_unexcepted_serialize.phpt ├── 090_consistency_mt.phpt ├── 090_consistency_mt_mb.phpt ├── 090_consistency_mt_php.phpt ├── 090_consistency_rand.phpt ├── 091_consistency_array_rand.phpt ├── 091_consistency_array_rand_mt.phpt ├── 091_consistency_array_rand_mt_mb.phpt ├── 091_consistency_shuffle.phpt ├── 091_consistency_shuffle_mt.phpt ├── 091_consistency_shuffle_mt_mb.phpt ├── 091_consistency_str_shuffle.phpt ├── 091_consistency_str_shuffle_mt.phpt ├── 092_consistency_next_xorshift128plus.phpt └── data │ ├── classes.inc │ └── tables │ ├── .gitkeep │ ├── array_rand_mt.inc │ ├── array_rand_mt_mb.inc │ ├── array_rand_rand.inc │ ├── mt.inc │ ├── mt_mb.inc │ ├── mt_php.inc │ ├── rand.inc │ ├── shuffle_mt.inc │ ├── shuffle_mt_mb.inc │ ├── shuffle_rand.inc │ ├── str_shuffle_mt.inc │ ├── str_shuffle_rand.inc │ └── xorshift128plus.tsv └── util ├── benchmark.php ├── data_gen.php ├── data_gen_docker.sh └── xorshift128plus └── generator.c /.appveyor.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.appveyor.yml -------------------------------------------------------------------------------- /.appveyor/build.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.appveyor/build.ps1 -------------------------------------------------------------------------------- /.appveyor/install.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.appveyor/install.ps1 -------------------------------------------------------------------------------- /.appveyor/package.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.appveyor/package.ps1 -------------------------------------------------------------------------------- /.appveyor/test.ps1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.appveyor/test.ps1 -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.gitignore -------------------------------------------------------------------------------- /.vscode/c_cpp_properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/.vscode/c_cpp_properties.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/README.md -------------------------------------------------------------------------------- /config.m4: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/config.m4 -------------------------------------------------------------------------------- /config.w32: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/config.w32 -------------------------------------------------------------------------------- /orng_compat.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/orng_compat.h -------------------------------------------------------------------------------- /orng_util.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/orng_util.h -------------------------------------------------------------------------------- /package.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/package.xml -------------------------------------------------------------------------------- /php_orng.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/php_orng.c -------------------------------------------------------------------------------- /php_orng.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/php_orng.h -------------------------------------------------------------------------------- /rng/glibcrand.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/glibcrand.c -------------------------------------------------------------------------------- /rng/glibcrand.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/glibcrand.h -------------------------------------------------------------------------------- /rng/glibcrand.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/glibcrand.stub.php -------------------------------------------------------------------------------- /rng/glibcrand_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/glibcrand_arginfo.h -------------------------------------------------------------------------------- /rng/glibcrand_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/glibcrand_arginfo_7.h -------------------------------------------------------------------------------- /rng/mt19937.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937.c -------------------------------------------------------------------------------- /rng/mt19937.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937.h -------------------------------------------------------------------------------- /rng/mt19937.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937.stub.php -------------------------------------------------------------------------------- /rng/mt19937_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937_arginfo.h -------------------------------------------------------------------------------- /rng/mt19937_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937_arginfo_7.h -------------------------------------------------------------------------------- /rng/mt19937mb.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937mb.stub.php -------------------------------------------------------------------------------- /rng/mt19937mb_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937mb_arginfo.h -------------------------------------------------------------------------------- /rng/mt19937mb_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937mb_arginfo_7.h -------------------------------------------------------------------------------- /rng/mt19937php.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937php.stub.php -------------------------------------------------------------------------------- /rng/mt19937php_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937php_arginfo.h -------------------------------------------------------------------------------- /rng/mt19937php_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/mt19937php_arginfo_7.h -------------------------------------------------------------------------------- /rng/rnginterface.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/rnginterface.c -------------------------------------------------------------------------------- /rng/rnginterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/rnginterface.h -------------------------------------------------------------------------------- /rng/rnginterface.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/rnginterface.stub.php -------------------------------------------------------------------------------- /rng/rnginterface_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/rnginterface_arginfo.h -------------------------------------------------------------------------------- /rng/rnginterface_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/rnginterface_arginfo_7.h -------------------------------------------------------------------------------- /rng/xorshift128plus.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/xorshift128plus.c -------------------------------------------------------------------------------- /rng/xorshift128plus.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/xorshift128plus.h -------------------------------------------------------------------------------- /rng/xorshift128plus.stub.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/xorshift128plus.stub.php -------------------------------------------------------------------------------- /rng/xorshift128plus_arginfo.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/xorshift128plus_arginfo.h -------------------------------------------------------------------------------- /rng/xorshift128plus_arginfo_7.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/rng/xorshift128plus_arginfo_7.h -------------------------------------------------------------------------------- /tests/001_extension.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/001_extension.phpt -------------------------------------------------------------------------------- /tests/002_inheritance.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/002_inheritance.phpt -------------------------------------------------------------------------------- /tests/003_next.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/003_next.phpt -------------------------------------------------------------------------------- /tests/004_range.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/004_range.phpt -------------------------------------------------------------------------------- /tests/005_clone.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/005_clone.phpt -------------------------------------------------------------------------------- /tests/006_shuffle.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/006_shuffle.phpt -------------------------------------------------------------------------------- /tests/007_array_rand.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/007_array_rand.phpt -------------------------------------------------------------------------------- /tests/008_str_shuffle.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/008_str_shuffle.phpt -------------------------------------------------------------------------------- /tests/009_mb_mt19937.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/009_mb_mt19937.phpt -------------------------------------------------------------------------------- /tests/010_serialize.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/010_serialize.phpt -------------------------------------------------------------------------------- /tests/050_unexcepted_array_rand_empty.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/050_unexcepted_array_rand_empty.phpt -------------------------------------------------------------------------------- /tests/050_unexcepted_array_rand_empty_7.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/050_unexcepted_array_rand_empty_7.phpt -------------------------------------------------------------------------------- /tests/051_unexcepted_array_rand_over.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/051_unexcepted_array_rand_over.phpt -------------------------------------------------------------------------------- /tests/051_unexcepted_array_rand_over_7.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/051_unexcepted_array_rand_over_7.phpt -------------------------------------------------------------------------------- /tests/052_unexcepted_range.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/052_unexcepted_range.phpt -------------------------------------------------------------------------------- /tests/052_unexcepted_range_7.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/052_unexcepted_range_7.phpt -------------------------------------------------------------------------------- /tests/053_unexcepted_serialize.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/053_unexcepted_serialize.phpt -------------------------------------------------------------------------------- /tests/090_consistency_mt.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/090_consistency_mt.phpt -------------------------------------------------------------------------------- /tests/090_consistency_mt_mb.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/090_consistency_mt_mb.phpt -------------------------------------------------------------------------------- /tests/090_consistency_mt_php.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/090_consistency_mt_php.phpt -------------------------------------------------------------------------------- /tests/090_consistency_rand.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/090_consistency_rand.phpt -------------------------------------------------------------------------------- /tests/091_consistency_array_rand.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_array_rand.phpt -------------------------------------------------------------------------------- /tests/091_consistency_array_rand_mt.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_array_rand_mt.phpt -------------------------------------------------------------------------------- /tests/091_consistency_array_rand_mt_mb.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_array_rand_mt_mb.phpt -------------------------------------------------------------------------------- /tests/091_consistency_shuffle.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_shuffle.phpt -------------------------------------------------------------------------------- /tests/091_consistency_shuffle_mt.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_shuffle_mt.phpt -------------------------------------------------------------------------------- /tests/091_consistency_shuffle_mt_mb.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_shuffle_mt_mb.phpt -------------------------------------------------------------------------------- /tests/091_consistency_str_shuffle.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_str_shuffle.phpt -------------------------------------------------------------------------------- /tests/091_consistency_str_shuffle_mt.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/091_consistency_str_shuffle_mt.phpt -------------------------------------------------------------------------------- /tests/092_consistency_next_xorshift128plus.phpt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/092_consistency_next_xorshift128plus.phpt -------------------------------------------------------------------------------- /tests/data/classes.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/classes.inc -------------------------------------------------------------------------------- /tests/data/tables/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/data/tables/array_rand_mt.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/array_rand_mt.inc -------------------------------------------------------------------------------- /tests/data/tables/array_rand_mt_mb.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/array_rand_mt_mb.inc -------------------------------------------------------------------------------- /tests/data/tables/array_rand_rand.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/array_rand_rand.inc -------------------------------------------------------------------------------- /tests/data/tables/mt.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/mt.inc -------------------------------------------------------------------------------- /tests/data/tables/mt_mb.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/mt_mb.inc -------------------------------------------------------------------------------- /tests/data/tables/mt_php.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/mt_php.inc -------------------------------------------------------------------------------- /tests/data/tables/rand.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/rand.inc -------------------------------------------------------------------------------- /tests/data/tables/shuffle_mt.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/shuffle_mt.inc -------------------------------------------------------------------------------- /tests/data/tables/shuffle_mt_mb.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/shuffle_mt_mb.inc -------------------------------------------------------------------------------- /tests/data/tables/shuffle_rand.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/shuffle_rand.inc -------------------------------------------------------------------------------- /tests/data/tables/str_shuffle_mt.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/str_shuffle_mt.inc -------------------------------------------------------------------------------- /tests/data/tables/str_shuffle_rand.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/str_shuffle_rand.inc -------------------------------------------------------------------------------- /tests/data/tables/xorshift128plus.tsv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/tests/data/tables/xorshift128plus.tsv -------------------------------------------------------------------------------- /util/benchmark.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/util/benchmark.php -------------------------------------------------------------------------------- /util/data_gen.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/util/data_gen.php -------------------------------------------------------------------------------- /util/data_gen_docker.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/util/data_gen_docker.sh -------------------------------------------------------------------------------- /util/xorshift128plus/generator.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zeriyoshi/php-ext-orng/HEAD/util/xorshift128plus/generator.c --------------------------------------------------------------------------------