[all-commits] [llvm/llvm-project] f3278e: [flang][runtime] Ensure that 0. <= RANDOM_NUMBER()...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Jun 3 22:44:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3278e0f3cfeb7cd1519b0b9154ccdc28f3410b5
      https://github.com/llvm/llvm-project/commit/f3278e0f3cfeb7cd1519b0b9154ccdc28f3410b5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-06-03 (Fri, 03 Jun 2022)

  Changed paths:
    M flang/runtime/random.cpp

  Log Message:
  -----------
  [flang][runtime] Ensure that 0. <= RANDOM_NUMBER() < 1.

It was possible for RANDOM_NUMBER() to return 1.0.

Differential Revision: https://reviews.llvm.org/D127020




More information about the All-commits mailing list