We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda8f74 commit b14483eCopy full SHA for b14483e
src/rngs/thread.rs
@@ -48,6 +48,7 @@ struct ReseedingCore {
48
impl Generator for ReseedingCore {
49
type Output = Results;
50
51
+ #[inline(always)]
52
fn generate(&mut self, results: &mut Results) {
53
if self.inner.get_block_pos() >= RESEED_BLOCK_THRESHOLD {
54
// We get better performance by not calling only `reseed` here
@@ -65,6 +66,7 @@ impl ReseedingCore {
65
66
Core::try_from_rng(&mut SysRng).map(|result| self.inner = result)
67
}
68
69
+ #[cold]
70
#[inline(never)]
71
fn reseed_and_generate(&mut self, results: &mut Results) {
72
trace!("Reseeding RNG (periodic reseed)");
0 commit comments