Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extra seeds were being generated in two ways: - If the seed generator threw out all of the seeds, the next non-dependency would start the process over instead of doing nothing. This is because using a non-dependency to initiate the seed set should only happen on the first non-dependency, but the paper's version of the condition was "when seed list is zero". Adding handling for determinant size limits means the seed list can be empty while iterating through the non-dependencies, making this assumed condition not work as intended. - A seed is chosen from the seed list using sample(). This doesn't work as intended if the list is length 1: instead it effectively passes the single seed into seq_len, and samples from that, resulting in choosing invalid seeds. This is fixed by using sample.int for an intermediate result, similary to the example given in sample's man page.
- Loading branch information