srfi 27 random bits: invalid state restore validation

Bug #392666 reported by Marco Maggi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Scheme Libraries
Invalid
Undecided
Derick Eddington

Bug Description

I am not used to browsing code at launchpad, so I hope that this:

http://bazaar.launchpad.net/~ikarus-libraries-team/ikarus-libraries/srfi/annotate/head%3A/27/random.ss

is a revision recent enough. The state-set function tests the state vector for length 7, but the true length is 6, AFAICS.

Revision history for this message
Derick Eddington (derick-eddington) wrote :

There isn't a state-set function. I'm guessing you meant mrg32k3a-state-set. The state is given and tested as a list, not a vector. It tests the length is 7 because the car is a tag symbol, then it binds the cdr (which has length 6), and then references the 6 indexes into that cdr. Checking for length 7 is correct. Have I misunderstood?

Changed in ikarus-libraries:
assignee: nobody → Derick Eddington (derick-eddington)
status: New → Invalid
Revision history for this message
Marco Maggi (mrc-mgg) wrote :

Sorry, it was a wrong report (I confused the original file with one I already started to modify some time ago).

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.