pub(crate) fn should_sample_statement(
sample_rate: f64,
reproducible_rng: Option<&mut ChaCha8Rng>,
) -> boolExpand description
Helper function to decide whether to sample a statement execution.
Returns true if the statement should be sampled based on the sample rate.
If reproducible_rng is Some, uses the provided RNG for reproducible sampling (used in tests).
If reproducible_rng is None, uses the thread-local RNG.