Skip to content

Instantly share code, notes, and snippets.

@FlameWolf
Created March 11, 2024 11:56
Show Gist options
  • Save FlameWolf/6b2b7122dcf1e890186e40e605249184 to your computer and use it in GitHub Desktop.
Save FlameWolf/6b2b7122dcf1e890186e40e605249184 to your computer and use it in GitHub Desktop.
const getRandomIdString = (steps = 1) => {
let seed = "";
for (let i = 0; i < steps; i++) {
seed += crypto.randomUUID();
}
return seed.replaceAll("-", "");
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment