bjpop/lfg — pull request #2 by kosmikus (2011-10-26 09:46:44+00:00)
Title: Array index errors

Hi Bernie.

Tim Kelley indirectly discovered two indexing errors in the LFG code. He has discovered that sometimes, LFG is producing non-deterministic results. I've traced the behaviour to the two errors I have fixed. Of course, I don't fully understand the original code, so it's probably better if you double-check before the merge. However, I'm relatively confident. I also locally switched to a safe, boxed vector variant and verified that this leads to exceptions in the original code, but not in the new version.

Cheers,
Andres