Feature #1326
Expose rsb:*random-state* or similar to control pseudo-randomness of participant ids
Status: | Resolved | Start date: | 01/11/2013 | |
---|---|---|---|---|
Priority: | Low | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | Common Lisp | |||
Target version: | rsb-0.9 |
Associated revisions
Use new variable id-random-state in uuid-mixin in src/util
fixes #1326
- src/variables.lisp (header): updated copyright
(id-random-state): new special variable; stores the random state
which should be used for generation of pseudo random ids and similar
things - src/util.lisp (header): updated copyright
(shared-initialize :after uuid-mixin t): use `*id-random-state*'
when generating random IDs - src/reloading.lisp: new file; contains code to be executed at image
initialization/shutdown - src/package.lisp (package rsb): added exported
symbols id-random-state and enable-id-random-state-reseed - test/util.lisp: new file; contains unit tests for utility
functionality; currently - cl-rsb.asd (system cl-rsb): added file src/reloading.lisp
(system cl-rsb-test): added file test/util.lisp
Fixed load order of src/{variables,configuration}.lisp
refs #1326
- src/variables.lisp (default-configuration): use nil as initial
value; a proper value is set in src/configuration.lisp - src/configuration.lisp (toplevel): removed forward declarations of
variables; set default-configuration - cl-rsb.asd (system cl-rsb): moved src/variables.lisp from module src
to module src-early
Use new variable id-random-state in uuid-mixin in src/util
fixes #1326
- src/variables.lisp (header): updated copyright
(id-random-state): new special variable; stores the random state
which should be used for generation of pseudo random ids and similar
things - src/util.lisp (header): updated copyright
(shared-initialize :after uuid-mixin t): use `*id-random-state*'
when generating random IDs - src/reloading.lisp: new file; contains code to be executed at image
initialization/shutdown - src/package.lisp (package rsb): added exported
symbols id-random-state and enable-id-random-state-reseed - test/util.lisp: new file; contains unit tests for utility
functionality; currently - cl-rsb.asd (system cl-rsb): added file src/reloading.lisp; added
dependency of src/util.lisp on src/variables.lisp
(system cl-rsb-test): added file test/util.lisp
Call rsb:enable-id-random-state-reseed in main/dump.lisp
refs #1326
- main/dump.lisp (toplevel): call `rsb:enable-id-random-state-reseed'
to ensure reseeding of the random state for id generation on startup
Call rsb:enable-id-random-state-reseed in main/dump.lisp
refs #1326
- main/dump.lisp (toplevel): call `rsb:enable-id-random-state-reseed'
to ensure reseeding of the random state for id generation on startup
History
#1 Updated by J. Moringen about 11 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 40
#2 Updated by J. Moringen about 11 years ago
- Status changed from In Progress to Resolved
- % Done changed from 40 to 100
Applied in changeset rsb-cl|commit:78ac5f33574dc094e26774dc81bad9e6c7b6a620.