Skip to content

Add system randomness providers and a portable std::random API #383

Closed

Description

@LunaStev

Tracked by #375 and represented in #378.

Problem

Wave has no standard source of operating-system entropy. Applications should not need to reach into libc bindings or invent insecure pseudo-random fallbacks.

Scope

  • Add target providers under std::sys for Linux and macOS.
  • Define future provider contracts for Windows, FreeBSD, and WASI.
  • Add a portable buffer-filling API under std::random.
  • Handle interruption, partial fills, unavailable providers, and zero-length requests.
  • Keep cryptographic entropy separate from deterministic pseudo-random generators.
  • Never fall back silently to time, process IDs, or weak generators.

Completion criteria

Activity

  1. added
    enhancement
    help wanted
    feature request
    cross-platform
    on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cross-platformenhancementfeature requesthelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions