Bench test for EllSwift ECDH

Co-authored-by: Dhruv Mehta <856960+dhruv@users.noreply.github.com>
This commit is contained in:
Pieter Wuille
2023-04-18 12:16:45 -04:00
parent 42d759f239
commit 3168b08043
4 changed files with 61 additions and 0 deletions

View File

@@ -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); }