[all-commits] [llvm/llvm-project] 5d42d6: [libc] Change rand implementation so all tests pas...

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Wed Jul 17 08:01:48 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d42d69d936bc3f29e849aac33d331b198143145
      https://github.com/llvm/llvm-project/commit/5d42d69d936bc3f29e849aac33d331b198143145
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2024-07-17 (Wed, 17 Jul 2024)

  Changed paths:
    M libc/src/stdlib/rand.cpp

  Log Message:
  -----------
  [libc] Change rand implementation so all tests pass in both 32- and 64-bit systems (#98692)

This patch makes rand select different algorithms depending on the arch.
This is needed to avoid a test failure in 32-bit systems where the LSB
of rand was not uniform enough when the 64-bit constants are used in
32-bit systems.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list