renato Posted November 19, 2002 Posted November 19, 2002 Hi, I have the same error and no idea what it means. All help is appreciated. cheers. renato
renato Posted November 19, 2002 Author Posted November 19, 2002 I have installed the latest snapshop , restored my db and all semms to be working fine , exept this : Warning: mt_rand(): Invalid range: 0..0 in /export/home/lummet.dk/www/catalog/includes/functions/general.php on line 1137 What is that , and how do i fix it. Belov is the code. // Return a random value function tep_rand($min = null, $max = null) { static $seeded; if (!$seeded) { mt_srand((double)microtime()*1000000); $seeded = true; } if (!isset($min) && !isset($max)) { return mt_rand(); } else { return mt_rand($min, $max); } } Hope some on knows the awnser to this :wink:
burt Posted November 19, 2002 Posted November 19, 2002 Same old, same old :) Explain your problem as best you can and we will do what we can to help...
renato Posted November 19, 2002 Author Posted November 19, 2002 there you go. I just forgot to quote a previous message with the same error I'm having. Thanks for your prompt answer.
renato Posted November 19, 2002 Author Posted November 19, 2002 there you go. I just forgot to quote a previous message with the same error I'm having. Thanks for your prompt answer.
Jan0815 Posted November 19, 2002 Posted November 19, 2002 This has been discussed in numerous threads today. The problem is solved, CVS is updated. HTH You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.
renato Posted November 19, 2002 Author Posted November 19, 2002 Thanks a lot to Jan and his answer is quoted as follows: The snapshot of tomorrow will have the changes included. The current snapshot was build last night. You can however make the (simple) change yourself by looking at this: http://cvs.sourceforge.net/cgi-bin/viewcvs...=1.198&r2=1.199 For more details please read: http://www.oscommerce.com/community.php/bugs,800 HTH cheers renato coto
Recommended Posts
Archived
This topic is now archived and is closed to further replies.