fix(qa-lab): use strong vm suffix entropy

This commit is contained in:
Vincent Koc
2026-04-10 08:51:46 +01:00
parent 77b108ee7f
commit c27ee0af42

View File

@@ -1,4 +1,5 @@
import { execFile } from "node:child_process";
import { randomUUID } from "node:crypto";
import fs from "node:fs";
import { access, appendFile, mkdir, writeFile } from "node:fs/promises";
import os from "node:os";
@@ -149,7 +150,7 @@ function createOutputStamp() {
}
function createVmSuffix() {
return `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
return `${Date.now().toString(36)}-${randomUUID().slice(0, 8)}`;
}
function sleep(ms: number) {