Skip to content

Commit aaea00b

Browse files
committed
Use sample instead of ind_sample
1 parent 71c3ed9 commit aaea00b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -293,15 +293,15 @@ macro_rules! impl_traits {
293293
impl RandNormal for $real {
294294
fn randn<R: Rng>(rng: &mut R) -> Self {
295295
let dist = Normal::new(0., 1.);
296-
dist.ind_sample(rng) as $real
296+
dist.sample(rng) as $real
297297
}
298298
}
299299

300300
impl RandNormal for $complex {
301301
fn randn<R: Rng>(rng: &mut R) -> Self {
302302
let dist = Normal::new(0., 1.);
303-
let re = dist.ind_sample(rng) as $real;
304-
let im = dist.ind_sample(rng) as $real;
303+
let re = dist.sample(rng) as $real;
304+
let im = dist.sample(rng) as $real;
305305
Self::new(re, im)
306306
}
307307
}

0 commit comments

Comments
 (0)