ring icon indicating copy to clipboard operation
ring copied to clipboard

Provide an easier-to-use rand API

Open Cassy343 opened this issue 4 years ago • 1 comments

I saw that issue #728 hit a dead end a while ago, and I figured that with the somewhat recent stabilization of const generics that it could be picked up again. I extend random construction to arrays of all integer types, however I do use unsafe code to accomplish this. If it is desirable to stick with strictly safe code, then that is definitely possible, however it will likely be more inefficient.

Cassy343 avatar Dec 07 '21 02:12 Cassy343

Is there any interest in moving the issue this PR addresses forward or should I close this PR?

Cassy343 avatar Jul 15 '22 01:07 Cassy343

Thanks for the PR. See https://github.com/rust-random/getrandom/pull/293 and the discussion in the related getrandom issue, where I discuss some of the API considerations and propose an alternative to defining a Pod/zerocopy/bytemuch-style API. I'm going to close this in favor of moving in that direction.

briansmith avatar Oct 25 '22 19:10 briansmith