diff options
| author | Richard Kistruck | 2010-03-23 00:30:34 +0000 |
|---|---|---|
| committer | Richard Kistruck | 2010-03-23 00:30:34 +0000 |
| commit | e3177d0c02e16581ed17c0d01a43e5a8140807e1 (patch) | |
| tree | e9d1c145c2241edb7107dd573964fd00acf798ac /mps/code/testlib.c | |
| parent | 1ff022cae16e98ff565fbfd76b14bd892418e653 (diff) | |
| download | emacs-e3177d0c02e16581ed17c0d01a43e5a8140807e1.tar.gz emacs-e3177d0c02e16581ed17c0d01a43e5a8140807e1.zip | |
mps br/vmem: simple-chunk-return:
testlib.c (comments only) record dates of changes from v1 -> v2 -> v3 rnd_states.
Copied from Perforce
Change: 170094
ServerID: perforce.ravenbrook.com
Diffstat (limited to 'mps/code/testlib.c')
| -rw-r--r-- | mps/code/testlib.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/mps/code/testlib.c b/mps/code/testlib.c index 0bc8771f134..027cbd2f9cd 100644 --- a/mps/code/testlib.c +++ b/mps/code/testlib.c | |||
| @@ -226,17 +226,21 @@ mps_addr_t rnd_addr(void) | |||
| 226 | * There have been 3 versions of the rnd-states reported by this | 226 | * There have been 3 versions of the rnd-states reported by this |
| 227 | * function: | 227 | * function: |
| 228 | * | 228 | * |
| 229 | * 1. before RHSK got his hands on rnd(). These seed values are not | 229 | * 1. before RHSK got his hands on rnd(), ie. pre-2008. These seed |
| 230 | * currently supported, but it might be easy to add support. | 230 | * values are not currently supported, but it might be easy to |
| 231 | * add support. | ||
| 231 | * | 232 | * |
| 232 | * 2. v2 states: the published "seed" (state) value was the seed | 233 | * 2. v2 states: the published "seed" (state) value was the seed |
| 233 | * *before* the 10 rnds to churn up and separate nearby values | 234 | * *before* the 10 rnds to churn up and separate nearby values |
| 234 | * from time(). This is unfortunate: you can't write a rnd_state | 235 | * from time(). This was unfortunate: you can't write a rnd_state |
| 235 | * getter, because it would have to go 10 steps back in time. | 236 | * getter, because it would have to go 10 steps backwards, and |
| 237 | * that's impossible. | ||
| 238 | * (2008..2010-03-22) | ||
| 236 | * | 239 | * |
| 237 | * 3. v3 states: when autogenerated from time(), the published | 240 | * 3. v3 states: when autogenerated from time(), the published state |
| 238 | * state is that *after* the 10 rnds. Therefore you can get this | 241 | * (printf'd) is that *after* the 10 rnds. Therefore you can get |
| 239 | * easily, store it, re-use it, etc. | 242 | * the state easily, store it, re-use it, etc. |
| 243 | * (New from 2010-03-22, changelist 170093) | ||
| 240 | */ | 244 | */ |
| 241 | 245 | ||
| 242 | void randomize(int argc, char **argv) | 246 | void randomize(int argc, char **argv) |