@topgroup/diginext
Version:
A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.
10 lines (9 loc) • 377 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const crypto_1 = require("crypto");
function generateUniqueString() {
const buffer = (0, crypto_1.randomBytes)(32);
const array = new Uint32Array(buffer.buffer);
return Array.from(array, (dec) => ("0" + dec.toString(16)).substring(-2)).join("");
}
exports.default = generateUniqueString;