It was possible for RANDOM_NUMBER() to return 1.0.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Differential D127020
[flang][runtime] Ensure that 0. <= RANDOM_NUMBER() < 1. ClosedPublic Authored by klausler on Jun 3 2022, 3:51 PM.
Details Summary It was possible for RANDOM_NUMBER() to return 1.0.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jun 3 2022, 4:52 PM Closed by commit rGf3278e0f3cfe: [flang][runtime] Ensure that 0. <= RANDOM_NUMBER() < 1. (authored by klausler). · Explain WhyJun 3 2022, 10:44 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 434243 flang/runtime/random.cpp
|