Batch limit seed #43

wants to merge 3 commits into


None yet
2 participants

phobos182 commented Jun 12, 2012

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).

@ripienaar ripienaar closed this Jun 14, 2012


ripienaar commented Jun 14, 2012

merged after some tweaking to work around a bug in the original code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment