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

Randomized generation and misc. fixes #499

Merged
merged 5 commits into from
Oct 12, 2024

Commits on Oct 11, 2024

  1. fsm_generate_matches: Add seed argument, random choice if non-zero.

    There isn't a flag to set the seed in fsm or re yet.
    
    Update callers, add a 0 seed argument to default to the
    existing behavior.
    
    Also, no end states means nothing to do, so exit right away.
    silentbicycle committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    a61a9da View commit details
    Browse the repository at this point in the history
  2. common.h: TRACK_TIMES should be 0 when BUILD_FOR_FUZZER is set.

    It fills up the fuzzer logs with lots of uninteresting output.
    silentbicycle committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    ffe6f69 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b2f9d3d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    35892eb View commit details
    Browse the repository at this point in the history
  5. Remove direct call to srand(), just recommend the caller use it.

    Instead of taking a seed argument, just treat `int randomized`
    like a flag. (I'd use `bool`, but the header consistently uses
    `int` for boolean arguments.)
    silentbicycle committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    cf8fc65 View commit details
    Browse the repository at this point in the history