Steel Bank Common Lisp

wanted: way to create a RANDOM-STATE object a known seed

Reported by Nikodemus Siivola on 2008-12-21
2
Affects Status Importance Assigned to Milestone
SBCL
Wishlist
Nathan Froyd

Bug Description

MAKE-RANDOM-STATE allows copying a random state object, or creating a new randomly initialized one.

It would be useful to be able to initialize the state from a simpler seed value as well, for debugging purposes.
(Documenting the random state format so that people could manually construct them would be another alternative,
but probably less future proof.)

Changed in sbcl:
importance: Undecided → Wishlist
status: New → Confirmed
Faré (fahree) wrote :

This patch fixes that bug AND makes the initialization method identical to the one used by the algorithm authors AND makes (MAKE-RANDOM-STATE T) much less predictable (and useless) than it used to be.

Faré (fahree) wrote :

I posted that patch ten days ago on the mailing-list (2009-11-29), before the previous release. I hope it makes it in the next release.

 status confirmed
 importance wishlist
 tag feature patch

Faré (fahree) wrote :

Is there anything that is blocking this patch from being committed? Anything that I can help with?

Nathan Froyd (froydnj) wrote :

I will apply this (or a newer patch found in the archives) to the next release, unless somebody complains before I do. ;)

Changed in sbcl:
assignee: nobody → Nathan Froyd (froydnj)
Nathan Froyd (froydnj) wrote :

Patch applied in 1.0.35.9. Thanks for your patience.

Changed in sbcl:
status: Confirmed → Fix Committed
Changed in sbcl:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers