Skip to content

Commit

Permalink
Improvement to Unique.uuid generation to follow more closely with ver…
Browse files Browse the repository at this point in the history
…sion 4 standard
  • Loading branch information
darkfrog26 committed Feb 6, 2019
1 parent 897cd0a commit bf69e86
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
9 changes: 5 additions & 4 deletions core/shared/src/main/scala/io/youi/Unique.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

/**
Expand Down

0 comments on commit bf69e86

Please sign in to comment.