php3-list | 199807
Date: 07/24/98
- Next message: Neal Ghura: "[PHP3] IMAP"
- Previous message: Zeev Suraski: "[PHP3] Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
(I wasn't subscribed to the list the first time I sent this... So I'm
resending it. Sory if you get it twice)
Hi!
I just finished a patch to use the mersenne twister in php3. Basically I
modified the rand.c functions with the code from Cokus.
There are some design decisions I took while adapting the code from Cokus
implementation to PHP3. Basically they have to do with the fact that
integers in php3 are 2^31 at most and cokus randomMT returns 2^32.
there is also a possibility to improve the performance in 64bit
architectures but I dont know which defines to use to change that.
I also mailed Cokus to ask permission to use his code and I got a positive
response.
Right now, the code is in a fase "It works for me". I tested the results
against the original function and they are the same, so the patch seems to
be good.
See ya!
Pedro Melo
melo <email protected>
- application/octet-stream attachment: php-3.0-mersenne.patch
-- PHP 3 Mailing List http://www.php.net/ To unsubscribe send an empty message to php3-unsubscribe <email protected> To subscribe to the digest list: php3-digest-subscribe <email protected> For help: php3-help <email protected> Archive: http://www.php.net/mailsearch.php3
- Next message: Neal Ghura: "[PHP3] IMAP"
- Previous message: Zeev Suraski: "[PHP3] Constructors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

