Permalink
Browse files

Improvement to Unique.uuid generation to follow more closely with ver…

…sion 4 standard
  • Loading branch information...
darkfrog26 committed Feb 6, 2019
1 parent 897cd0a commit bf69e8634643258e4c8da8bf38ee769c5bef345c
Showing with 6 additions and 5 deletions.
  1. +1 −1 build.sbt
  2. +5 −4 core/shared/src/main/scala/io/youi/Unique.scala
@@ -3,7 +3,7 @@ import sbtcrossproject.CrossPlugin.autoImport.crossProject

name := "youi"
organization in ThisBuild := "io.youi"
version in ThisBuild := "0.10.3"
version in ThisBuild := "0.10.4-SNAPSHOT"
scalaVersion in ThisBuild := "2.12.8"
crossScalaVersions in ThisBuild := List("2.12.8", "2.11.12")
resolvers in ThisBuild += Resolver.sonatypeRepo("releases")
@@ -33,10 +33,11 @@ object Unique {
def uuid: String = {
val a = apply(8, Hexadecimal)
val b = apply(4, Hexadecimal)
val c = apply(4, Hexadecimal)
val d = apply(4, Hexadecimal)
val e = apply(12, Hexadecimal)
s"$a-$b-$c-$d-$e"
val c = apply(3, Hexadecimal)
val d = apply(1, "89ab")
val e = apply(3, Hexadecimal)
val f = apply(12, Hexadecimal)
s"$a-$b-4$c-$d$e-$f"
}

/**

0 comments on commit bf69e86

Please sign in to comment.