GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Added srand() to provide a deterministic way to generate random numbers. Use case documented here.
This will allow us to run subsequent commands to the same random set of hosts using a seeded value. Example: Run agent on 5% of discovered nodes with a seed. Then I can run calls on the same hosts using the same seed number as long as the number of discovered hosts does not change (That is important, state is wrapped up in the # of discovered hosts).
Added limit-seed to batching for deterministic pseudorandom number ge…
Had to sort the array before using it. Otherwise positions shift due …
…to discovery out-of-order
Fixed typo in helpers.rb for limit seed
merged after some tweaking to work around a bug in the original code