0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Matthew Borkowski a5cc5f7854 Fix typo in Pcg.zig's fill function
When filling the last (len % 4) bytes of a buffer, the random number n was only being shifted right by 4 bits for each byte instead of 8. A random u16, for example, would always have its middle two nybbles be equal when generated this way. For comparison, Isaac64.zig, Sfc64.zig, and Xoroshiro128.zig all correctly shift right by 8 bits for each of the last bytes in their nearly identical fill functions.
History 2021-03-29 09:22:06 +02:00
..
include update to latest clang C headers 2020-12-04 15:39:16 -07:00
libc macos: add missing x86_64 libc headers 2021-03-12 18:05:50 +01:00
libcxx update install files for LLVM 11rc1 2020-08-04 17:52:26 -07:00
libcxxabi update install files for LLVM 11rc1 2020-08-04 17:52:26 -07:00
libunwind libunwind: fix compile errors and warnings for 32-bit arm 2020-12-24 13:31:41 -07:00
std Fix typo in Pcg.zig's fill function 2021-03-29 09:22:06 +02:00
tsan stage2: fix Cache deadlock and build more of TSAN 2020-12-24 01:18:48 -07:00