Skip to content

[Feature Request] Provide random utilities #1385

Description

@chris-olszewski

Is your feature request related to a problem? Please describe.

Generating deterministic random numbers is tricky at the moment.

Describe the solution you'd like

Provide some common utilities for deterministic random generation in workflow context.
I think mirroring Typescript's current utilities would make sense:

  • random for number generation
  • fill for filling a slice
  • uuid4 for generating a UUID

Additional context

Look at other SDKs for prior art for how of how to construct uuid / Random number from a random seed.

See https://docs.rs/rand/latest/rand/ for an example of common random utilities.

Metadata

Metadata

Labels

Rust SDKIssues about or asking for Rust SDK releaseenhancementNew feature or request

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions