Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breaking zig change in 0.14.0; renamed std.rand.Random -> std.Random #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/v4.zig
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ const Uuid = core.Uuid;
const rand = std.crypto.random;

/// Create a version 4 UUID using a user provided RNG
pub fn new2(r: std.rand.Random) Uuid {
pub fn new2(r: std.Random) Uuid {
// Set all bits to pseudo-randomly chosen values.
var uuid: Uuid = r.int(Uuid);
// Set the two most significant bits of the
2 changes: 1 addition & 1 deletion src/v7.zig
Original file line number Diff line number Diff line change
@@ -14,7 +14,7 @@ const time = std.time;
///
/// Implementations SHOULD utilize this UUID over
/// version 1 and 6 if possible.
pub fn new2(r: std.rand.Random, millis: *const fn () i64) Uuid {
pub fn new2(r: std.Random, millis: *const fn () i64) Uuid {
// 0 1 2 3
// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+