Skip to content

Commit

Permalink
lol
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 29, 2024
1 parent 228c67a commit 5088872
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ object StdlibRuntime {
new playground.std.Random[F] {

def nextUUID(
): F[NextUUIDOutput] = UUIDGen[F].randomUUID.map(NextUUIDOutput(_))
): F[NextUUIDOutput] = UUIDGen[F]
.randomUUID
.map(_.toString())
.map(UUID(_))
.map(NextUUIDOutput(_))

}

Expand Down
4 changes: 2 additions & 2 deletions modules/core/src/main/smithy/std.smithy
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ $version: "2"

namespace playground.std

use alloy#UUID

@trait(selector: "service")
@protocolDefinition
structure stdlib {}

string UUID

@stdlib
@documentation("A standard library service providing random generators of data.")
service Random {
Expand Down

0 comments on commit 5088872

Please sign in to comment.