Projects / php_mt_seed

php_mt_seed

php_mt_seed finds possible seeds given the very first PHP mt_rand() output after possible seeding with mt_srand(). With advanced invocation modes, php_mt_seed is also able to match multiple, non-first, and/or inexact mt_rand() outputs to possible seed values. php_mt_seed is written in C with optional SIMD intrinsics (SSE4.1/AVX, XOP, AVX2, MIC) and OpenMP. On a modern quad-core CPU, it is able to search the full 32-bit seed space in one minute (or in just seven seconds on Xeon Phi).

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  04 Nov 2013 01:23

    Release Notes: AVX2 and MIC (Xeon Phi) support has been added. Advanced invocation modes allowing matching of multiple, non-first, and/or inexact mt_rand() outputs to possible seed values have been added.

    Recent comments

    15 Jun 2014 07:43 Belegkarnil

    Hi! I just discovered this powerful tool :-) But I do not know how to use it if mt_rand() is used to generate integers between [0;x] by (mt_rand() modulo x) instead of (round(mt_rand()/mt_max_rand() * x)). Is it possible with your tool?
    Thanks!

    Screenshot

    Project Spotlight

    OpenStack4j

    A Fluent OpenStack client API for Java.

    Screenshot

    Project Spotlight

    TurnKey TWiki Appliance

    A TWiki appliance that is easy to use and lightweight.