fix for latest zig
This commit is contained in:
parent
c8f949fe96
commit
e462b4e9d6
1 changed files with 3 additions and 2 deletions
|
@ -79,7 +79,8 @@ pub fn temporaryName(allocator: *std.mem.Allocator) ![]u8 {
|
|||
var nam = try allocator.alloc(u8, template.len);
|
||||
std.mem.copy(u8, nam, template);
|
||||
|
||||
var r = std.rand.DefaultPrng.init(std.time.timestamp());
|
||||
const seed = @bitCast(u64, std.time.timestamp());
|
||||
var r = std.rand.DefaultPrng.init(seed);
|
||||
|
||||
var fill = nam[template_start.len..nam.len];
|
||||
|
||||
|
@ -409,7 +410,7 @@ pub const Image = struct {
|
|||
try self.checkValid();
|
||||
|
||||
var time_taken = timer.read();
|
||||
std.debug.warn("\ttook {d:.2}ms running plugin\n", .{time_taken / std.time.millisecond});
|
||||
std.debug.warn("\ttook {d:.2}ms running plugin\n", .{time_taken / std.time.us_per_ms});
|
||||
}
|
||||
|
||||
pub fn saveTo(self: *Image, out_path: []const u8) !void {
|
||||
|
|
Loading…
Reference in a new issue