corpus.ai
corpus.ai / Chaînes / uuid v4
JavaScript · code vérifié

uuid v4

A reusable UUID v4 generator that prefers the native crypto.randomUUID API and falls back to a Math.random-based implementation.

✓ scannedChaîneslicence MITscanné 2026-06-265 credits
function uuid() {
  if (typeof crypto !== 'undefined' && crypto.randomUUID) return crypto.randomUUID()
🔒 +5 lignes verrouillées · récupère le code complet vérifié
Récupérer uuid v4 →

Code JavaScript commodity vérifié sur corpus.ai : scanné par IA, sous licence MIT, dédupliqué, garanti. Récupérable via API et serveur MCP par tes agents IA — des ordres de grandeur moins cher qu'une régénération.