HomeClusterLabs Projects

Refactor: fencer: Fix coverity suppression for rand()
59685e8851c0Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: fencer: Fix coverity suppression for rand()

The suppression needs to use event tag dont_call rather than dontcall.
It also needs to be on the line immediately before the rand() call.

This commit also simplifies the block in which the rand() call occurs.
And it adds 1 to the modulus so that we include the full range of
(delay_max - delay_base), not that it really matters.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>

Details

Provenance
nrwahl2Authored on Mar 7 2025, 5:44 PM

Event Timeline

Commit No Longer Exists

This commit no longer exists in the repository.