aboutsummaryrefslogtreecommitdiff
path: root/lib/std/hash.zig
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2025-03-05 03:17:54 +0000
committerAndrew Kelley <andrew@ziglang.org>2025-07-11 08:17:43 +0200
commiteb375525366ba51c3f626cf9b27d97fc81e2c938 (patch)
treebabf69fdb1cd163a81ecb4c23581a628bbf1f9ce /lib/std/hash.zig
parentd83b95cbf4895027b1730ef6025df4fe01beba26 (diff)
downloadzig-eb375525366ba51c3f626cf9b27d97fc81e2c938.tar.gz
zig-eb375525366ba51c3f626cf9b27d97fc81e2c938.zip
Remove numerous things deprecated during the 0.14 release cycle
Basically everything that has a direct replacement or no uses left. Notable omissions: - std.ArrayHashMap: Too much fallout, needs a separate cleanup. - std.debug.runtime_safety: Too much fallout. - std.heap.GeneralPurposeAllocator: Lots of references to it remain, not a simple find and replace as "debug allocator" is not equivalent to "general purpose allocator". - std.io.Reader: Is being reworked at the moment. - std.unicode.utf8Decode(): No replacement, needs a new API first. - Manifest backwards compat options: Removal would break test data used by TestFetchBuilder. - panic handler needs to be a namespace: Many tests still rely on it being a function, needs a separate cleanup.
Diffstat (limited to 'lib/std/hash.zig')
-rw-r--r--lib/std/hash.zig3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/std/hash.zig b/lib/std/hash.zig
index 157dad67a7..e0eca9e391 100644
--- a/lib/std/hash.zig
+++ b/lib/std/hash.zig
@@ -81,9 +81,8 @@ fn uint16(input: u16) u16 {
return x;
}
-/// DEPRECATED: use std.hash.int()
/// Source: https://github.com/skeeto/hash-prospector
-pub fn uint32(input: u32) u32 {
+fn uint32(input: u32) u32 {
var x: u32 = input;
x = (x ^ (x >> 17)) *% 0xed5ad4bb;
x = (x ^ (x >> 11)) *% 0xac4c1b51;