Fix the bad randomization code and removed randomseed since it no longer applies to PHP 5.2.1+.