Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix srand "bug" for random vtrees #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

RenatoGeh
Copy link

@RenatoGeh RenatoGeh commented Apr 26, 2020

The original SDD library includes an srand(time(NULL)) call at each random vtree construction. This causes a bug where, if multiple random vtrees are to be created in the space of less than a second, they all result in the same vtree, as subsequent calls to new_random_vtree set the same seed every time.

This patchset addresses two issues. The first is a simple addition to setup.cfg. setup.py explicitly calls for python build_ext --inplace to be run for building. By adding an additional entry to setup.cfg, we guarantee every run of python build corresponds to build_ext --inplace. The second is recompiling the C libraries without the offending line to address the issue stated above.

An additional change is adding an AUR package for Arch Linux users entry to the Installation section of the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant