Groups | Search | Server Info | Login | Register
Groups > comp.lang.lisp > #60785
| From | Alan Bawden <alan@csail.mit.edu> |
|---|---|
| Newsgroups | comp.lang.lisp |
| Subject | Re: Make a random-state from a non-random source |
| Date | 2026-05-05 00:45 -0400 |
| Organization | ITS Preservation Society |
| Message-ID | <86pl3a1n3a.fsf@williamsburg.bawden.org> (permalink) |
| References | <jwvmryfku8t.fsf-monnier+comp.lang.lisp@gnu.org> |
Stefan Monnier <monnier@iro.umontreal.ca> writes: > Reading the CLHS about `make-random-state` I can't see how to create > a "deterministic" random state. > > ... > > I guess I could print a random state into a file and then read it back in, > but that depends on internals, so it's doubly messy. That what you are intended to do. That's why implementations are required to provide a read syntax for objects of type RANDOM-STATE. (See section 22.1.3.10 "Printing Random States" in the hyperspec.) Yes, it could be more convenient, but it isn't. - Alan
Back to comp.lang.lisp | Previous | Next — Previous in thread | Next in thread | Find similar
Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-04 12:46 -0400
Re: Make a random-state from a non-random source Alan Bawden <alan@csail.mit.edu> - 2026-05-05 00:45 -0400
Re: Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-05 16:03 -0400
Re: Make a random-state from a non-random source tfb <no_email@invalid.invalid> - 2026-05-09 18:20 +0000
Re: Make a random-state from a non-random source Stefan Monnier <monnier@iro.umontreal.ca> - 2026-05-11 11:23 -0400
csiph-web