Skip to content

Implementation of mt_rand and mt_srand functions for bruteforce and speed

Notifications You must be signed in to change notification settings

Gifts/pyphp_rand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cython implementation of mt_rand and mt_srand functions

Installation

Cython should be installed. Get it from your linux repository or install with easy_install/pip

easy_install Cython
OR
pip install Cython
Then install this package: python setup.py install

Speed tests

$ time php test_rand.php
1706479894
real 0m39.513s
user 0m39.377s
sys 0m0.007s

$ time python test_mt_rand_speed.py
1706479894
real 0m18.820s
user 0m18.259s
sys 0m0.063s

About

Implementation of mt_rand and mt_srand functions for bruteforce and speed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published