From e89a4c783d85839beba9ba0b7a04c93af1b5acfd Mon Sep 17 00:00:00 2001 From: WillChilds-Klein Date: Tue, 29 Oct 2024 13:45:42 +0000 Subject: [PATCH] Fix test lambda capture to appease MSVC --- crypto/pkcs7/bio/bio_md_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crypto/pkcs7/bio/bio_md_test.cc b/crypto/pkcs7/bio/bio_md_test.cc index 12b45be0db..575974ff0f 100644 --- a/crypto/pkcs7/bio/bio_md_test.cc +++ b/crypto/pkcs7/bio/bio_md_test.cc @@ -179,7 +179,7 @@ TEST_P(BIOMessageDigestTest, Randomized) { {4, 1, 5, 3, 2, 0, 1, max_len, 133, 4555, 22, 4, 7964, 1234}, }; std::vector v(1000); - std::generate(v.begin(), v.end(), [] { return rand() % max_len; }); + std::generate(v.begin(), v.end(), [max_len] { return rand() % max_len; }); io_patterns.push_back(v); for (auto io_pattern : io_patterns) {