File tree Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Expand file tree Collapse file tree 3 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -148,8 +148,7 @@ impl<CS: CipherSuite> OprfServer<CS> {
148148 /// [`Error::Protocol`] if the protocol fails and can't be completed.
149149 pub fn new < R : TryRngCore + TryCryptoRng > ( rng : & mut R ) -> Result < Self > {
150150 let mut seed = GenericArray :: < _ , <CS :: Group as Group >:: ScalarLen > :: default ( ) ;
151- rng. try_fill_bytes ( & mut seed)
152- . map_err ( |_| Error :: Protocol ) ?;
151+ rng. try_fill_bytes ( & mut seed) . map_err ( |_| Error :: Protocol ) ?;
153152 Self :: new_from_seed ( & seed, & [ ] )
154153 }
155154
Original file line number Diff line number Diff line change @@ -191,8 +191,7 @@ impl<CS: CipherSuite> PoprfServer<CS> {
191191 /// [`Error::Protocol`] if the protocol fails and can't be completed.
192192 pub fn new < R : TryRngCore + TryCryptoRng > ( rng : & mut R ) -> Result < Self > {
193193 let mut seed = GenericArray :: < _ , <CS :: Group as Group >:: ScalarLen > :: default ( ) ;
194- rng. try_fill_bytes ( & mut seed)
195- . map_err ( |_| Error :: Protocol ) ?;
194+ rng. try_fill_bytes ( & mut seed) . map_err ( |_| Error :: Protocol ) ?;
196195
197196 Self :: new_from_seed ( & seed, & [ ] )
198197 }
Original file line number Diff line number Diff line change @@ -198,8 +198,7 @@ impl<CS: CipherSuite> VoprfServer<CS> {
198198 /// [`Error::Protocol`] if the protocol fails and can't be completed.
199199 pub fn new < R : TryRngCore + TryCryptoRng > ( rng : & mut R ) -> Result < Self > {
200200 let mut seed = GenericArray :: < _ , <CS :: Group as Group >:: ScalarLen > :: default ( ) ;
201- rng. try_fill_bytes ( & mut seed)
202- . map_err ( |_| Error :: Protocol ) ?;
201+ rng. try_fill_bytes ( & mut seed) . map_err ( |_| Error :: Protocol ) ?;
203202 // This can't fail as the hash output is type constrained.
204203 Self :: new_from_seed ( & seed, & [ ] )
205204 }
You can’t perform that action at this time.
0 commit comments