Skip to content

Commit

Permalink
Fix test lambda capture to appease MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
WillChilds-Klein committed Oct 29, 2024
1 parent 9910dc5 commit e89a4c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crypto/pkcs7/bio/bio_md_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<size_t> 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) {
Expand Down

0 comments on commit e89a4c7

Please sign in to comment.