diff options
author | fanquake <fanquake@gmail.com> | 2023-01-05 19:52:33 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2023-01-12 13:42:44 +0000 |
commit | 672f7ad747ecc6e04472f96fa88332be1f39d39b (patch) | |
tree | c68c5f09592c4f219d2fbfb7faf07a0dbc1b1292 /src/random.cpp | |
parent | edc3d1b296e34838d649dc21b8483a52e214932a (diff) | |
download | bitcoin-672f7ad747ecc6e04472f96fa88332be1f39d39b.tar.xz |
doc: remove usages of C++11
Now it's just the standard library.
Diffstat (limited to 'src/random.cpp')
-rw-r--r-- | src/random.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/random.cpp b/src/random.cpp index 8e04d449f3..23ea9ba6b7 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -62,7 +62,7 @@ static inline int64_t GetPerformanceCounter() noexcept __asm__ volatile ("rdtsc" : "=a"(r1), "=d"(r2)); // Constrain r1 to rax and r2 to rdx. return (r2 << 32) | r1; #else - // Fall back to using C++11 clock (usually microsecond or nanosecond precision) + // Fall back to using standard library clock (usually microsecond or nanosecond precision) return std::chrono::high_resolution_clock::now().time_since_epoch().count(); #endif } @@ -438,7 +438,7 @@ public: RNGState& GetRNGState() noexcept { - // This C++11 idiom relies on the guarantee that static variable are initialized + // This idiom relies on the guarantee that static variable are initialized // on first call, even when multiple parallel calls are permitted. static std::vector<RNGState, secure_allocator<RNGState>> g_rng(1); return g_rng[0]; |