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
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "qfall-math"
version = "0.2.0"
edition = "2024"
rust-version = "1.87" # due to wit_bindgen dependency
rust-version = "1.86"
description = "Mathematical foundations for rapid prototyping of lattice-based cryptography"
readme = "README.md"
homepage = "https://qfall.github.io"
Expand All @@ -26,7 +26,7 @@ thiserror = "2"
lazy_static = "1"
probability = "0.20"
derive_more = { version = "2.1", features = ["display"] }
flint3-sys = { version="3.6.0", features=["gmp-mpfr-sys"]}
flint3-sys = { version="3.6.1", features=["gmp-mpfr-sys"]}

[profile.bench]
debug = true
Expand Down
11 changes: 8 additions & 3 deletions benches/sample_z.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,14 @@ pub fn bench_sample_z(c: &mut Criterion) {
];

for s in gaussian_widths {
let mut dgis =
DiscreteGaussianIntegerSampler::init(center, s, 6.0, LookupTableSetting::Precompute)
.unwrap();
let mut dgis = DiscreteGaussianIntegerSampler::init(
center,
s,
6.0,
LookupTableSetting::Precompute,
None,
)
.unwrap();

c.bench_function("DiscreteGauss RejectionSampling", |b| {
b.iter(|| dgis.sample_z())
Expand Down
Loading
Loading