Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add method for randomly sampling non-zero elements #14

Open
ValarDragon opened this issue Dec 15, 2020 · 1 comment
Open

Add method for randomly sampling non-zero elements #14

ValarDragon opened this issue Dec 15, 2020 · 1 comment

Comments

@ValarDragon
Copy link
Member

ValarDragon commented Dec 15, 2020

We should add a method either on UniformRand or on a trait thats auto-derivable for traits with UniformRand and Zero, in order to sample non-zero elements

Originally posted by @ValarDragon in arkworks-rs/groth16#16 (comment)

@burdges
Copy link

burdges commented Dec 15, 2020

You might glance at the distributions stuff from the rand crate, probably not quite right here but worth a quick look.

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

No branches or pull requests

2 participants