Tim Caswell
53a3a67a0f
Fix xxhash64 to support seeds larger than u32. ( #21881 )
...
### What does this PR do?
Hopefully fix https://github.com/oven-sh/bun/issues/21879
### How did you verify your code works?
Added a test with a seed larger than u32.
The test vector is from this tiny test I wrote to rule out upstream zig
as the culprit:
```zig
const std = @import("std");
const testing = std.testing;
test "xxhash64 of short string with custom seed" {
const input = "";
const seed: u64 = 16269921104521594740;
const hash = std.hash.XxHash64.hash(seed, input);
const expected_hash: u64 = 3224619365169652240;
try testing.expect(hash == expected_hash);
}
```
2025-08-15 17:50:35 -07:00
..
2025-07-05 00:58:42 -07:00
2023-03-07 12:22:34 -08:00
2024-11-06 19:41:39 -08:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-05-08 23:22:16 -07:00
2024-09-03 21:32:52 -07:00
2025-07-24 11:48:55 -07:00
2025-07-24 11:48:55 -07:00
2025-07-24 11:48:55 -07:00
2025-05-08 23:22:16 -07:00
2024-09-03 21:32:52 -07:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2023-03-07 12:22:34 -08:00
2024-12-25 21:47:13 -08:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-02-27 17:08:00 -08:00
2025-05-08 23:22:16 -07:00
2025-01-17 21:03:09 +00:00
2025-07-25 12:46:33 -07:00
2025-08-15 17:50:35 -07:00
2025-05-08 23:22:16 -07:00
2024-12-16 20:16:23 -08:00
2023-12-01 14:02:08 -08:00
2024-12-10 12:43:17 -08:00
2024-09-03 21:32:52 -07:00
2023-11-20 15:07:13 -08:00
2024-04-03 02:46:10 -07:00
2025-06-19 15:02:38 -07:00
2025-05-08 23:22:16 -07:00
2025-01-22 17:39:50 -08:00
2025-05-08 19:27:46 -07:00
2024-09-03 21:32:52 -07:00
2025-03-14 22:13:31 -07:00
2023-12-16 17:36:08 -08:00
2025-07-02 22:47:14 -07:00
2024-10-29 16:39:09 -07:00
2024-09-03 21:32:52 -07:00
2025-04-23 23:21:22 -07:00
2023-06-09 05:53:23 -07:00
2024-03-19 20:49:13 -07:00
2024-03-27 10:31:12 -07:00
2023-03-07 12:22:34 -08:00
2025-07-14 00:47:53 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-08-14 22:42:05 -07:00
2024-03-21 10:42:57 -07:00
2023-04-14 17:45:16 -07:00
2024-04-23 15:35:34 -07:00
2024-04-23 15:35:34 -07:00
2024-04-23 15:35:34 -07:00
2024-04-23 15:35:34 -07:00
2023-04-14 17:45:16 -07:00
2024-04-23 15:35:34 -07:00
2024-04-23 15:35:34 -07:00
2024-04-23 15:35:34 -07:00
2023-04-14 17:45:16 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-01-02 21:24:16 -08:00
2025-07-23 19:23:54 -07:00
2025-05-20 23:26:47 -07:00