Skip to content

Web: use safe method to copy to MaybeUninit#584

Merged
josephlr merged 1 commit into
rust-random:masterfrom
daxpedda:web-safe-uninit
Jan 14, 2025
Merged

Web: use safe method to copy to MaybeUninit#584
josephlr merged 1 commit into
rust-random:masterfrom
daxpedda:web-safe-uninit

Conversation

@daxpedda

Copy link
Copy Markdown
Contributor

This removes the last unsafe call in the Web implementation.
See Uint8Array::copy_to_uninit.

@josephlr josephlr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for helping us fix this.

@josephlr josephlr merged commit 6be4012 into rust-random:master Jan 14, 2025
takumi-earth pushed a commit to earthlings-dev/getrandom that referenced this pull request Jan 27, 2026
This removes the last `unsafe` call in the Web implementation.
See
[`Uint8Array::copy_to_uninit`](https://docs.rs/js-sys/0.3.77/js_sys/struct.Uint8Array.html#method.copy_to_uninit).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants