srfi 27 random bits: invalid state restore validation
Bug #392666 reported by
Marco Maggi
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:
is a revision recent enough. The state-set function tests the state vector for length 7, but the true length is 6, AFAICS.
To post a comment you must log in.
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?