| ... | @@ -441,9 +441,9 @@ pub fn autoHash(key: var, comptime rng: *std.rand.Random, comptime HashInt: type | ... | @@ -441,9 +441,9 @@ pub fn autoHash(key: var, comptime rng: *std.rand.Random, comptime HashInt: type |
| 441 | builtin.TypeId.Int => |info| { | 441 | builtin.TypeId.Int => |info| { |
| 442 | const unsigned_x = @bitCast(@IntType(false, info.bits), key); | 442 | const unsigned_x = @bitCast(@IntType(false, info.bits), key); |
| 443 | if (info.bits <= HashInt.bit_count) { | 443 | if (info.bits <= HashInt.bit_count) { |
| 444 | return HashInt(unsigned_x) *% comptime rng.scalar(HashInt); | 444 | return HashInt(unsigned_x) ^ comptime rng.scalar(HashInt); |
| 445 | } else { | 445 | } else { |
| 446 | return @truncate(HashInt, unsigned_x *% comptime rng.scalar(@typeOf(unsigned_x))); | 446 | return @truncate(HashInt, unsigned_x ^ comptime rng.scalar(@typeOf(unsigned_x))); |
| 447 | } | 447 | } |
| 448 | }, | 448 | }, |
| 449 | | 449 | |