You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provide native Windows system randomness for std::random #786
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.os supportA request to add support for a new operating system.
Windows is a supported native target, but std::sys::random returns false from sys_random_available and -38 for every nonempty read. The portable random_fill API therefore remains unavailable on both Windows architectures. #383 implemented Linux/macOS and explicitly deferred Windows; #385 is the umbrella.
Implement the existing provider contract with the Windows system RNG, such as BCryptGenRandom, through a narrow system-ABI binding. Preserve the portable partial-fill/error contract and handle the OS API's length width. Include the required native link dependency. No libc binding or weak fallback is needed.
Difficulty: medium.
Completion criteria
random_available and nonempty random_fill work on Windows amd64 and ARM64.
Cover zero length, invalid arguments, OS failure, length chunking and valid-prefix reporting.
Use mocked failure/length tests and a bounded native smoke that detects an unchanged buffer; do not assert specific random bytes.
The Windows package links the provider without manually supplied application libraries.
cross-platformIssues related to making Wave work seamlessly across multiple operating systems.enhancementA request for a new feature or improvement.help wantedThe issue requires extra attention or help from others.os supportA request to add support for a new operating system.
Activity