From 8d56e472c9fa97dc6eeae9866eed927910f7dfe2 Mon Sep 17 00:00:00 2001 From: e4m2 Date: Thu, 8 Feb 2024 15:21:35 +0100 Subject: Replace std.rand references with std.Random --- lib/std/Random/ChaCha.zig | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/std/Random/ChaCha.zig') diff --git a/lib/std/Random/ChaCha.zig b/lib/std/Random/ChaCha.zig index 75f62c9a47..5783ee4152 100644 --- a/lib/std/Random/ChaCha.zig +++ b/lib/std/Random/ChaCha.zig @@ -5,7 +5,6 @@ const std = @import("std"); const mem = std.mem; -const Random = std.rand.Random; const Self = @This(); const Cipher = std.crypto.stream.chacha.ChaCha8IETF; @@ -53,9 +52,9 @@ pub fn addEntropy(self: *Self, bytes: []const u8) void { self.refill(); } -/// Returns a `std.rand.Random` structure backed by the current RNG. -pub fn random(self: *Self) Random { - return Random.init(self, fill); +/// Returns a `std.Random` structure backed by the current RNG. +pub fn random(self: *Self) std.Random { + return std.Random.init(self, fill); } // Refills the buffer with random bytes, overwriting the previous key. -- cgit v1.2.3