property: make cache flushing slight less deterministic
authorPauli <pauli@openssl.org>
Fri, 29 Jul 2022 01:00:50 +0000 (11:00 +1000)
committerPauli <pauli@openssl.org>
Tue, 16 Aug 2022 22:03:07 +0000 (08:03 +1000)
commitd6e3a2c15929a793d15e034f81cca19e1808efdc
treeb6df7601a8d307cdb5c2f3b8e065199818ed4e3b
parentce3951fc30c7bc7c3dbacba19d87c79d9af9da0d
property: make cache flushing slight less deterministic

If there is no timer available to seed the stochastic flushing, revert to a
global seed that gets updated each flush.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18906)

(cherry picked from commit 56d4ff6cd7fc200943197dff65146a8864b7df98)
crypto/property/property.c