note 113392 added to function.mt-srand
| From: | simon at labs dot coop | Date: | Sat, 05 Oct 2013 19:40:17 +0000 |
| Subject: | note 113392 added to function.mt-srand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-196472@lists.php.net to get a copy of this message | ||
Something we discovered in Sydney running BBS Systems before the net advent was here, if we
didn't seed of another BBS we would going in circles in our System Physicality Abstraction
Layers.. The important thing is to seed from a remote system and easy way at the Centroidal Plexus
of the web (Chronolabs Cooperative) we offer a seed feed and the following code will randomise you
out of the number cycle:
See in PHP both the letters and numbers are seedable as letters are treated as numbers as well. You
can always use individual tokens by extracting the Element with DOM.. But below is equally
effective!
<?php
mt_srand(file_get_contents('http://seed.feeds.labs.coop'));
?>
----
Server IP: 113.20.13.217
Probable Submitter: 203.206.220.82
----
Manual Page -- http://php.net/manual/en/function.mt-srand.php
Edit -- https://master.php.net/note/edit/113392
Del: integrated -- https://master.php.net/note/delete/113392/integrated
Del: useless -- https://master.php.net/note/delete/113392/useless
Del: bad code -- https://master.php.net/note/delete/113392/bad+code
Del: spam -- https://master.php.net/note/delete/113392/spam
Del: non-english -- https://master.php.net/note/delete/113392/non-english
Del: in docs -- https://master.php.net/note/delete/113392/in+docs
Del: other reasons-- https://master.php.net/note/delete/113392
Reject -- https://master.php.net/note/reject/113392
Search -- https://master.php.net/manage/user-notes.php