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

Bug #310116 reported by Nikodemus Siivola
2
Affects Status Importance Assigned to Milestone
SBCL
Fix Released
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
Revision history for this message
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.

Revision history for this message
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.

Revision history for this message
Nikodemus Siivola (nikodemus) wrote : Re: [Bug 310116] Re: wanted: way to create a RANDOM-STATE object a known seed

 status confirmed
 importance wishlist
 tag feature patch

Revision history for this message
Faré (fahree) wrote :

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

Revision history for this message
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)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.