From dcb2b08656f521c7836abd3f471dcb57f863f909 Mon Sep 17 00:00:00 2001 From: hfhbd Date: Tue, 31 Oct 2023 15:11:56 +0100 Subject: [PATCH] Fix timestamp prefix in UUIDv7 --- detekt-baseline.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/detekt-baseline.xml b/detekt-baseline.xml index 824050f..bfe607d 100644 --- a/detekt-baseline.xml +++ b/detekt-baseline.xml @@ -69,7 +69,6 @@ MagicNumber:UUID.kt$UUID$0x0fffL MagicNumber:UUID.kt$UUID$0x1fff MagicNumber:UUID.kt$UUID$0xf000L - MagicNumber:UUID.kt$UUID$0xffff00000000L MagicNumber:UUID.kt$UUID$0xffff0000L MagicNumber:UUID.kt$UUID$0xffffffffffffL MagicNumber:UUID.kt$UUID$12 @@ -90,9 +89,9 @@ MagicNumber:UUID7.kt$0x3fffffffffffffffL MagicNumber:UUID7.kt$0x7000L MagicNumber:UUID7.kt$0x80L + MagicNumber:UUID7.kt$12 MagicNumber:UUID7.kt$16 - MagicNumber:UUID7.kt$20 TooManyFunctions:SHA1.kt$SHA1 - VariableNaming:UUID7.kt$val rand_a = (random.nextInt() shr 20).toLong() + VariableNaming:UUID7.kt$val rand_a = random.nextBits(12).toLong()