aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Random.zig
diff options
context:
space:
mode:
authorRyan Liptak <squeek502@hotmail.com>2024-05-02 20:20:41 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-06-13 10:18:59 -0400
commit76fb2b685b202ea665b850338e353c7816f5b2bb (patch)
tree16b4b39db7541febd2b4bf92c041239bdd45f144 /lib/std/Random.zig
parent4aa15440c7a12bcc6bc0cd589ade02295549d48c (diff)
downloadzig-76fb2b685b202ea665b850338e353c7816f5b2bb.tar.gz
zig-76fb2b685b202ea665b850338e353c7816f5b2bb.zip
std: Convert deprecated aliases to compile errors and fix usages
Deprecated aliases that are now compile errors: - `std.fs.MAX_PATH_BYTES` (renamed to `std.fs.max_path_bytes`) - `std.mem.tokenize` (split into `tokenizeAny`, `tokenizeSequence`, `tokenizeScalar`) - `std.mem.split` (split into `splitSequence`, `splitAny`, `splitScalar`) - `std.mem.splitBackwards` (split into `splitBackwardsSequence`, `splitBackwardsAny`, `splitBackwardsScalar`) - `std.unicode` + `utf16leToUtf8Alloc`, `utf16leToUtf8AllocZ`, `utf16leToUtf8`, `fmtUtf16le` (all renamed to have capitalized `Le`) + `utf8ToUtf16LeWithNull` (renamed to `utf8ToUtf16LeAllocZ`) - `std.zig.CrossTarget` (moved to `std.Target.Query`) Deprecated `lib/std/std.zig` decls were deleted instead of made a `@compileError` because the `refAllDecls` in the test block would trigger the `@compileError`. The deleted top-level `std` namespaces are: - `std.rand` (renamed to `std.Random`) - `std.TailQueue` (renamed to `std.DoublyLinkedList`) - `std.ChildProcess` (renamed/moved to `std.process.Child`) This is not exhaustive. Deprecated aliases that I didn't touch: + `std.io.*` + `std.Build.*` + `std.builtin.Mode` + `std.zig.c_translation.CIntLiteralRadix` + anything in `src/`
Diffstat (limited to 'lib/std/Random.zig')
-rw-r--r--lib/std/Random.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Random.zig b/lib/std/Random.zig
index 681f70bc98..0ba048eb0c 100644
--- a/lib/std/Random.zig
+++ b/lib/std/Random.zig
@@ -9,7 +9,7 @@ const math = std.math;
const mem = std.mem;
const assert = std.debug.assert;
const maxInt = std.math.maxInt;
-pub const Random = @This(); // Remove pub when `std.rand` namespace is removed.
+const Random = @This();
/// Fast unbiased random numbers.
pub const DefaultPrng = Xoshiro256;