| commit | ee63f283122d75753dd923caa0fbfc52633b3e19 | [log] [tgz] |
|---|---|---|
| author | Ioanna Tzialla <tzialla@google.com> | Wed Oct 22 15:04:47 2025 +0000 |
| committer | Boringssl LUCI CQ <boringssl-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Oct 22 08:27:20 2025 -0700 |
| tree | 8b19353527a7907aada8b824aa622594792b0638 | |
| parent | a1edddc3c6268fa5409f9c30188c2fc76da6f41b [diff] |
Initialize last_sample_ to fix maybe-uninitialized warning. Change-Id: I794b61e14df751b0b8850f87f5dd8044ab70c1cb Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/83107 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com>
diff --git a/crypto/fipsmodule/entropy/jitter.cc.inc b/crypto/fipsmodule/entropy/jitter.cc.inc index af9993b..19c7fbf 100644 --- a/crypto/fipsmodule/entropy/jitter.cc.inc +++ b/crypto/fipsmodule/entropy/jitter.cc.inc
@@ -153,7 +153,7 @@ private: bool initialized_ = false; T sub_sampler_; - uint64_t last_sample_; + uint64_t last_sample_ = 0; }; template <typename U>