0xMiden / 0xMiden/miden-vm

Refactor all random samplers to use `Distribution`

Open
#3,503 6 comments 0 reactions 0 assignees View on GitHub
tests
Dominant language
Rust
Stars
772
Forks
352
Avg merge
1d 12h
Merged PRs (30d)
93

Description

Agreed, we have to refactor all random samplers to use `Distribution`-s. This is done in some places but not consistently.

_Originally posted by @Al-Kindi-0 in https://github.com/0xMiden/crypto/pull/720#discussion_r2635009578_

Leftover from 0xMiden/crypto#720

---

**Clarified scope** ([context](https://github.com/0xMiden/crypto/pull/753#issuecomment-3717821401)): this is about test helpers, not key generation.

In scope:
- Messages to sign
- Polynomials (Falcon)
- Plaintexts for encryption

Out of scope:
- SecretKey/Nonce generation for DSA, AEAD, ECDH modules

Original thread: [PR 0xMiden/crypto#720 comment](https://github.com/0xMiden/crypto/pull/720#discussion_r2634577006)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.