[all-commits] [llvm/llvm-project] ea1a69: [flang][runtime] Don't let random seed queries cha...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sat Jun 4 08:46:36 PDT 2022


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

  Changed paths:
    M flang/runtime/random.cpp

  Log Message:
  -----------
  [flang][runtime] Don't let random seed queries change the sequence

When the current seed of the pseudo-random generator is queried
with CALL RANDOM_SEED(GET=n), that query should not change the
stream of pseudo-random numbers produced by CALL RANDOM_NUMBER().

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




More information about the All-commits mailing list