Files
radicle-explorer/tests/support/support.ts
T
2023-06-01 10:09:12 +02:00

7 lines
195 B
TypeScript

import * as Crypto from "node:crypto";
// Generate string of 12 random characters with 8 bits of entropy.
export function randomTag(): string {
return Crypto.randomBytes(8).toString("hex");
}