HomeClusterLabs Projects

Refactor: fencer: Fix coverity suppression for rand()
080f1aaf59aaUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent 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
Parents
rP6418f63c39f0: Refactor: remoted: Avoid TOCTOU when cleaning up remote schema dir
Branches
Unknown
Tags
Unknown

Event Timeline