fix for latest zig

This commit is contained in:
Luna 2020-05-30 15:56:58 -03:00
parent c8f949fe96
commit e462b4e9d6
1 changed files with 3 additions and 2 deletions

View File

@ -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 {