[sv-ec] EXT 14: $get_randstate(), $set_randstate()


Subject: [sv-ec] EXT 14: $get_randstate(), $set_randstate()
From: Ryan, Ray (Ray_Ryan@mentorg.com)
Date: Sun Aug 31 2003 - 17:57:18 PDT


In EXT-14, I believe there is a portability issue with
the proposed $get_randstate(), $set_randstate() function.

These functions work with a string "of unspecified length and format".
Furthermore it is specified that:
"Calling $set_randstate() with a string value that was not obtained
from $get_randstate() is undefined."

How about if $get_randstate() is used to get a state string. Then
this string is written to a file. In a second simulation, the file
is read and the state string passed to $set_randstate(). Is this
legal?
Of course, there would likely be problems if in this manner a
state string is recorded from one vendor and attempted to be used
with another vendor.

What is the motivation for this feature? It would seem if the feature
is related to saving the random number state - so that the same
sub-sequence can be repeated, then the above usage of these functions
could be expected.

- Ray



This archive was generated by hypermail 2b28 : Sun Aug 31 2003 - 17:59:01 PDT