@@ -522,7 +522,7 @@ where
522
522
fn gen_entropy ( & mut self ) -> u64 {
523
523
trace ! ( "JitterRng: collecting entropy" ) ;
524
524
525
- // Prime `ec.prev_time`, and run the noice sources to make sure the
525
+ // Prime `ec.prev_time`, and run the noise sources to make sure the
526
526
// first loop round collects the expected entropy.
527
527
let mut ec = EcState {
528
528
prev_time : ( self . timer ) ( ) ,
@@ -650,7 +650,7 @@ where
650
650
// `assert!(delta_sum / TESTLOOPCOUNT >= 1)`
651
651
// `assert!(delta_sum >= TESTLOOPCOUNT)`
652
652
if delta_sum < TESTLOOPCOUNT {
653
- return Err ( TimerError :: TinyVariantions ) ;
653
+ return Err ( TimerError :: TinyVariations ) ;
654
654
}
655
655
656
656
// Ensure that we have variations in the time stamp below 100 for at
@@ -673,7 +673,7 @@ where
673
673
// available bits of entropy per round here for two reasons:
674
674
// 1. Simple estimates of the available bits (like Shannon entropy) are
675
675
// too optimistic.
676
- // 2. Unless we want to waste a lot of time during intialization , there
676
+ // 2. Unless we want to waste a lot of time during initialization , there
677
677
// only a small number of samples are available.
678
678
//
679
679
// Therefore we use a very simple and conservative estimate:
@@ -703,10 +703,10 @@ where
703
703
/// `JitterRng` entropy collector.
704
704
///
705
705
/// Setting `var_rounds` to `true` will execute the memory access and the
706
- /// CPU jitter noice sources a variable amount of times (just like a real
706
+ /// CPU jitter noise sources a variable amount of times (just like a real
707
707
/// `JitterRng` round).
708
708
///
709
- /// Setting `var_rounds` to `false` will execute the noice sources the
709
+ /// Setting `var_rounds` to `false` will execute the noise sources the
710
710
/// minimal number of times. This can be used to measure the minimum amount
711
711
/// of entropy one round of the entropy collector can collect in the worst
712
712
/// case.
0 commit comments