Overview
| Artifact ID: | 570b634e5a4c79744b0373e20872d71384f3a090 |
|---|---|
| Ticket: | 1480509fffffffffffffffffffffffffffffffff
Allow srand() to handle big wides |
| User & Date: | afredd on 2006-05-03 21:44:08 |
Changes
- icomment:
Logged In: YES user_id=1386588 I'm happy with Donal's answer - my call to srand() was unnecesary. I'm happy to close this report now. >Currently srand() takes an "int" >argument, not a "long" argument. >That is, only values that pass >[string is integer -strict] are >accepted. ...i was skeptical when i read this (!) but, you're right: % info pa 8.5a3 % string is integer -strict 4294967296 0 % string is integer -strict 4294967295 1 % expr srand(4294967295) 0.7574217011022483 % expr srand(4294967296) can't use floating-point value as argument to srand although, this isn't the behaviour of 8.4: % info pa 8.4.8 % string is integer -strict 4294967295 1 % string is integer -strict 4294967296 0 % expr srand(4294967295) 0.757421701102 % expr srand(4294967296) 0.242578298898
- login: "afredd"
- mimetype: "text/plain"
- username: "afredd"