[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>
1 file changed
tree: 06349df95e001bd55a1cb5f07c8c91b5045a4a44
  1. boards/
  2. build/
  3. bundles/
  4. docs/
  5. examples/
  6. garnet/
  7. products/
  8. scripts/
  9. sdk/
  10. src/
  11. third_party/
  12. tools/
  13. zircon/
  14. .clang-format
  15. .clang-tidy
  16. .git-blame-ignore-revs
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. analysis_options.yaml
  22. AUTHORS
  23. BUILD.gn
  24. CODE_OF_CONDUCT.md
  25. CONTRIBUTING.md
  26. LICENSE
  27. OWNERS
  28. PATENTS
  29. pyrightconfig.json
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

What is Fuchsia?

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.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.