File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -116,12 +116,12 @@ macro_rules! chacha_impl {
116116 impl RngCore for $ChaChaXRng {
117117 #[ inline]
118118 fn next_u32( & mut self ) -> u32 {
119- self . rng. next_u32 ( )
119+ self . rng. next_word ( )
120120 }
121121
122122 #[ inline]
123123 fn next_u64( & mut self ) -> u64 {
124- self . rng. next_u64 ( )
124+ self . rng. next_u64_from_u32 ( )
125125 }
126126
127127 #[ inline]
Original file line number Diff line number Diff line change @@ -107,12 +107,12 @@ where
107107{
108108 #[ inline( always) ]
109109 fn next_u32 ( & mut self ) -> u32 {
110- self . 0 . next_u32 ( )
110+ self . 0 . next_word ( )
111111 }
112112
113113 #[ inline( always) ]
114114 fn next_u64 ( & mut self ) -> u64 {
115- self . 0 . next_u64 ( )
115+ self . 0 . next_u64_from_u32 ( )
116116 }
117117
118118 fn fill_bytes ( & mut self , dest : & mut [ u8 ] ) {
You can’t perform that action at this time.
0 commit comments