diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-10-09 17:22:22 -0400 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-10-09 17:22:22 -0400 |
commit | 93f7f00c956c14620ef031626f124b57397ca867 (patch) | |
tree | c5a9f536e79d2c8d2d02897511a9138acaf35394 /std/uuid/v4.ts | |
parent | 28293acd9c12a94f5d769706291032e844c7b92b (diff) |
Run deno_std tests in github actions
Diffstat (limited to 'std/uuid/v4.ts')
-rw-r--r-- | std/uuid/v4.ts | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/std/uuid/v4.ts b/std/uuid/v4.ts index 511933439..84ba28b0f 100644 --- a/std/uuid/v4.ts +++ b/std/uuid/v4.ts @@ -15,10 +15,12 @@ export default function generate(): string { rnds[6] = (rnds[6] & 0x0f) | 0x40; // Version 4 rnds[8] = (rnds[8] & 0x3f) | 0x80; // Variant 10 - const bits: string[] = [...rnds].map((bit): string => { - const s: string = bit.toString(16); - return bit < 0x10 ? "0" + s : s; - }); + const bits: string[] = [...rnds].map( + (bit): string => { + const s: string = bit.toString(16); + return bit < 0x10 ? "0" + s : s; + } + ); return [ ...bits.slice(0, 4), "-", |