commit | 1eb5ffb4fa683d5a0168c5d4f88d7946a37a9cfb | [log] [tgz] |
---|---|---|
author | Leonard Chan <leonardchan@google.com> | Mon Dec 06 22:08:13 2021 +0000 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Dec 06 22:08:13 2021 +0000 |
tree | 06349df95e001bd55a1cb5f07c8c91b5045a4a44 | |
parent | ec22eb380e1902932ccf6e6a09260e8a257bac44 [diff] |
[fidl] Remove usages of std::uniform_int_distribution<bool> `bool` is not a valid type for uniform_int_distribution according to http://eel.is/c++draft/rand#req.genl-1.5. This was enforced as of https://reviews.llvm.org/D114129 and is leading to build errors. This replaces some instances of std::uniform_int_distribution<bool> with std::bernoulli_distribution and adds template specialization for DataGenerator::next<bool>() to use one of the valid types instead. Bug: 89740 Change-Id: Icef1ca2e19275b96e7e15aac9a672707e9bac0bc Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/613333 Commit-Queue: Leonard Chan <leonardchan@google.com> Reviewed-by: Yifei Teng <yifeit@google.com>
Fuchsia an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.