add std.fmt.hex

converts an unsigned integer into an array
This commit is contained in:
Andrew Kelley
2024-07-19 17:39:55 -07:00
parent 9d00f69be5
commit eb4028bf30
9 changed files with 55 additions and 47 deletions

View File

@@ -457,7 +457,7 @@ fn make(step: *Step, make_options: Step.MakeOptions) !void {
const rand_int = std.crypto.random.int(u64);
const tmp_sub_path = "tmp" ++ fs.path.sep_str ++
std.Build.hex64(rand_int) ++ fs.path.sep_str ++
std.fmt.hex(rand_int) ++ fs.path.sep_str ++
basename;
const tmp_sub_path_dirname = fs.path.dirname(tmp_sub_path).?;