rust-random / getrandom

A small cross-platform library for retrieving random data from (operating) system source
Apache License 2.0
275 stars 180 forks source link

Clarify safety properties of casts between `[MaybeUninit<T>]` <-> `[T]`. #431

Closed briansmith closed 4 months ago

briansmith commented 4 months ago

Reduce the scope of the unsafe blocks to the unsafe operations.

briansmith commented 4 months ago

I updated this with the following changes: