Bhè, sarebbe una buona idea ed anche interessante in effetti leggendo il source 'rand.c' (/ext/standard/), c'è: /* The following php_mt_...() functions are based on a C++ class MTRand by Richard J. Wagner. For more information see the web page at http://www-personal.engin.umich.edu/~wagnerr/MersenneTwister.html Mersenne Twister random number generator -- a C++ class MTRand Based on code by Makoto Matsumoto, Takuji Nishimura, and Shawn Cokus Richard J. Wagner v1.0 15 May 2003 rjwagner@xxxxxxxxxxx The Mersenne Twister is an algorithm for generating random numbers. Itwas designed with consideration of the flaws in various other generators. The period, 2^19937-1, and the order of equidistribution, 623 dimensions, are far greater. The generator is also fast; it avoids multiplication and division, and it benefits from caches and pipelines. For more information
see the inventors' web page at http://www.math.keio.ac.jp/~matumoto/emt.html Reference M. Matsumoto and T. Nishimura, "Mersenne Twister: A 623-DimensionallyEquidistributed Uniform Pseudo-Random Number Generator", ACM Transactions on
Modeling and Computer Simulation, Vol. 8, No. 1, January 1998, pp 3-30. Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, Copyright (C) 2000 - 2003, Richard J. Wagner All rights reserved. ... http://it.wikipedia.org/wiki/Mersenne_Twister Il giorno 10/apr/09, alle ore 22:20, Chuzz chuzz ha scritto:
tempo fa avevo dato un'occhiata ai sorgenti di php per le funzioni rand() (mt_rand, creazione SID etc) e avevo fatto alcune considerazioi sulla possibilità di predire il risultato di queste funzioni. da solo non prodotto niente di concreto ma ho gia qualche appunto su cui lavorare. L'importante è che ci sia (almeno) un progetto che piaccia e interessi a tutti...