aboutsummaryrefslogtreecommitdiff
path: root/src/test/util/random.h
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-08-29 09:48:34 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2024-08-29 09:38:05 +0200
commit2222f7a87404078984c7189768a3422deb114302 (patch)
tree80469d3ac40cb8f15833fad35c2c4f17f4d2430d /src/test/util/random.h
parent4ee1940e849efe8fb1510b11d78399231df4b578 (diff)
test: Rename SeedRand::SEED to FIXED_SEED for clarity
Diffstat (limited to 'src/test/util/random.h')
-rw-r--r--src/test/util/random.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/test/util/random.h b/src/test/util/random.h
index c458534d48..441150e666 100644
--- a/src/test/util/random.h
+++ b/src/test/util/random.h
@@ -12,8 +12,16 @@
#include <cstdint>
enum class SeedRand {
- ZEROS, //!< Seed with a compile time constant of zeros
- SEED, //!< Use (and report) random seed from environment, or a (truly) random one.
+ /**
+ * Seed with a compile time constant of zeros.
+ */
+ ZEROS,
+ /**
+ * Seed with a fixed value that never changes over the lifetime of this
+ * process. The seed is read from the RANDOM_CTX_SEED environment variable
+ * if set, otherwise generated randomly once, saved, and reused.
+ */
+ FIXED_SEED,
};
/** Seed the global RNG state for testing and log the seed value. This affects all randomness, except GetStrongRandBytes(). */