From b72e6082801d15cea6304665e61d679269081196 Mon Sep 17 00:00:00 2001 From: Xymorot Date: Sat, 12 Oct 2019 21:04:34 +0200 Subject: [PATCH] doc: add comment to uuid function --- src/services/uuid.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/services/uuid.ts b/src/services/uuid.ts index 7bf7b44..238d864 100644 --- a/src/services/uuid.ts +++ b/src/services/uuid.ts @@ -7,6 +7,11 @@ const a = 0x61; const i = 0x69; const nice = 0x45; +/** + * This UUID is dependant on 100-nanosecond intervals since 15 October 1582. + * It wraps in 3400 AD. + * see RFC 4122 4.2.1. + */ export function uuid(): string { return uuidv1({ node: [R, e, n, a, i, nice],