mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-20 14:18:55 +00:00
Pre-allocate the distribution
This commit is contained in:
parent
f10bd5feee
commit
462d0e74ce
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ const DECOYS: usize = RING_LEN - 1;
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref GAMMA: Gamma<f64> = Gamma::new(19.28, 1.0 / 1.61).unwrap();
|
static ref GAMMA: Gamma<f64> = Gamma::new(19.28, 1.0 / 1.61).unwrap();
|
||||||
static ref DISTRIBUTION: Mutex<Vec<u64>> = Mutex::new(vec![]);
|
static ref DISTRIBUTION: Mutex<Vec<u64>> = Mutex::new(Vec::with_capacity(3000000));
|
||||||
}
|
}
|
||||||
|
|
||||||
async fn select_n<R: RngCore + CryptoRng>(
|
async fn select_n<R: RngCore + CryptoRng>(
|
||||||
|
|
Loading…
Reference in a new issue