diff --git a/lib/compiler/Maker.zig b/lib/compiler/Maker.zig index 0da5d000a41f9952954acf834f110afb161c9482..ee3c189a28173d70378a15c05f513df057375583 100644 --- a/lib/compiler/Maker.zig +++ b/lib/compiler/Maker.zig @@ -1250,11 +1250,9 @@ fn configure(graph: *Graph, options: ConfigureOptions) !ScannedConfig { }) }); } - const rand_int = randInt(io, u64); - const tmp_dir_sub_path = "tmp" ++ Dir.path.sep_str ++ std.fmt.hex(rand_int); const config_tmp_path: Path = .{ .root_dir = graph.local_cache_root, - .sub_path = try arena.dupe(u8, tmp_dir_sub_path), + .sub_path = try arena.print("tmp" ++ Dir.path.sep_str ++ "{x}", .{randInt(io, u64)}), }; const config_tmp_file: Io.File = try config_tmp_path.root_dir.handle.createFile( io,