std.rand renamed to std.Random
This now builds on version 0.14.0-dev.111+451550e86 on windows
This commit is contained in:
parent
76748c28de
commit
42330ba82c
2 changed files with 3 additions and 3 deletions
|
@ -35,7 +35,7 @@ pub fn shutdown() void {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn open_cwd() tp.result {
|
pub fn open_cwd() tp.result {
|
||||||
var cwd_buf: [std.fs.MAX_PATH_BYTES]u8 = undefined;
|
var cwd_buf: [std.fs.max_path_bytes]u8 = undefined;
|
||||||
const cwd = std.fs.cwd().realpath(".", &cwd_buf) catch "(none)";
|
const cwd = std.fs.cwd().realpath(".", &cwd_buf) catch "(none)";
|
||||||
return open(cwd);
|
return open(cwd);
|
||||||
}
|
}
|
||||||
|
|
|
@ -215,7 +215,7 @@ const Fire = struct {
|
||||||
|
|
||||||
allocator: std.mem.Allocator,
|
allocator: std.mem.Allocator,
|
||||||
plane: Plane,
|
plane: Plane,
|
||||||
prng: std.rand.DefaultPrng,
|
prng: std.Random.DefaultPrng,
|
||||||
|
|
||||||
//scope cache - spread fire
|
//scope cache - spread fire
|
||||||
spread_px: u8 = 0,
|
spread_px: u8 = 0,
|
||||||
|
@ -239,7 +239,7 @@ const Fire = struct {
|
||||||
var self: Fire = .{
|
var self: Fire = .{
|
||||||
.allocator = a,
|
.allocator = a,
|
||||||
.plane = plane,
|
.plane = plane,
|
||||||
.prng = std.rand.DefaultPrng.init(blk: {
|
.prng = std.Random.DefaultPrng.init(blk: {
|
||||||
var seed: u64 = undefined;
|
var seed: u64 = undefined;
|
||||||
try std.posix.getrandom(std.mem.asBytes(&seed));
|
try std.posix.getrandom(std.mem.asBytes(&seed));
|
||||||
break :blk seed;
|
break :blk seed;
|
||||||
|
|
Loading…
Add table
Reference in a new issue