Skip to content

Commit

Permalink
use correct random implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
paulpdaniels committed Feb 4, 2024
1 parent c47bf29 commit d2a1090
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ trait CollectionProvider {
}

object CollectionProvider {
val live: ULayer[CollectionProvider] = ZLayer.succeed(new CollectionProvider {
val live: ULayer[CollectionProvider] = ZLayer(for {
random <- ZIO.random
} yield new CollectionProvider {
override def collection(name: String): ZIO[Any, Throwable, Collection] =
Random
random
.nextIntBetween(1, Int.MaxValue)
.map(suffix => Collection(s"${name}_$suffix"))
})
Expand Down
2 changes: 0 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
addSbtPlugin("dev.zio" % "zio-sbt-ecosystem" % "0.4.0-alpha.22")
addSbtPlugin("dev.zio" % "zio-sbt-ci" % "0.4.0-alpha.22")
addSbtPlugin("dev.zio" % "zio-sbt-website" % "0.4.0-alpha.22")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")

0 comments on commit d2a1090

Please sign in to comment.