aboutsummaryrefslogtreecommitdiff
path: root/src/random.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/random.h')
-rw-r--r--src/random.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/random.h b/src/random.h
index 49c0dff5bf..50f56ed911 100644
--- a/src/random.h
+++ b/src/random.h
@@ -213,6 +213,9 @@ public:
/** Generate random bytes. */
std::vector<unsigned char> randbytes(size_t len);
+ /** Fill a byte Span with random bytes. */
+ void fillrand(Span<std::byte> output);
+
/** Generate a random 32-bit integer. */
uint32_t rand32() noexcept { return randbits(32); }