UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

13 lines (11 loc) 263 B
// @rewire export function randomHex(): string { let hex = Math.floor(Math.random() * Math.pow(16, 8)).toString(16); while (hex.length < 8) { hex = `0${hex}`; } return hex; } export function randomId(): string { return randomHex() + randomHex(); }