Skip to content

Add a pure pseudo random version of getULID which does not need IO #14

@ad-si

Description

@ad-si

Could be useful for testing purposes.
E.g.

getDeterministicULID :: Seed -> ULID  
getDeterministicULIDTime :: POSIXTime -> Seed -> ULID

For getDeterministicULID the timestamp should increase with increasing seeds.

https://hackage.haskell.org/package/random-1.2.1.1/docs/System-Random.html#v:mkStdGen

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions