Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[package]
name = "qfall-math"
version = "0.1.0"
version = "0.1.1"
edition = "2024"
rust-version = "1.85" # due to rand and rand_distr dependency
rust-version = "1.87" # due to wit_bindgen dependency
description = "Mathematical foundations for rapid prototyping of lattice-based cryptography"
readme = "README.md"
homepage = "https://qfall.github.io"
Expand All @@ -17,8 +17,8 @@ criterion = { version = "0.8", features = ["html_reports"] }
flint-sys = "0.7"
libc = "0"
paste = "1"
rand = "0"
rand_distr = "0"
rand = "0.10"
rand_distr = "0.6"
regex = "1"
serde = {version="1", features=["derive"]}
serde_json = "1"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This `math`-crate is a memory-safe wrapper of [FLINT](https://flintlib.org/) in

## Quick-Start
First, ensure that you use a Unix-like distribution (Linux or MacOS). Setup [WSL](https://learn.microsoft.com/en-us/windows/wsl/install) if you're using Windows. This is required due to this crate's dependency on FLINT.
Then, make sure your `rustc --version` is `1.85` or newer.
Then, make sure your `rustc --version` is `1.87` or newer.

Furthermore, it's required that `m4`, a C-compiler such as `gcc`, and `make` are installed.
```bash
Expand Down
2 changes: 1 addition & 1 deletion src/rational/mat_q/sample/gauss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use probability::{
prelude::{Gaussian, Sample},
source,
};
use rand::RngCore;
use rand::Rng;
use std::fmt::Display;

impl MatQ {
Expand Down
2 changes: 1 addition & 1 deletion src/rational/poly_over_q/sample/gauss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ use probability::{
prelude::{Gaussian, Sample},
source,
};
use rand::RngCore;
use rand::Rng;
use std::fmt::Display;

impl PolyOverQ {
Expand Down
2 changes: 1 addition & 1 deletion src/rational/q/sample/gauss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use probability::{
distribution::{Gaussian, Sample},
source,
};
use rand::RngCore;
use rand::Rng;

impl Q {
/// Chooses a [`Q`] instance according to the continuous Gaussian distribution.
Expand Down
2 changes: 1 addition & 1 deletion src/utils/sample/discrete_gauss.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::{
rational::{MatQ, Q},
traits::{MatrixDimensions, MatrixGetSubmatrix, Pow},
};
use rand::Rng;
use rand::RngExt;
use serde::{Deserialize, Serialize};
use std::collections::HashMap;

Expand Down
2 changes: 1 addition & 1 deletion src/utils/sample/uniform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

use crate::{error::MathError, integer::Z};
use flint_sys::fmpz::{fmpz_addmul_ui, fmpz_set_ui};
use rand::{RngCore, rngs::ThreadRng};
use rand::{Rng, rngs::ThreadRng};

/// Enables uniformly random sampling a [`Z`] in `[0, interval_size)`.
///
Expand Down
Loading