Skip to content

Commit

Permalink
Revert "Update PRG api in readme"
Browse files Browse the repository at this point in the history
This reverts commit 09512e5.
  • Loading branch information
myl7 committed Jan 28, 2024
1 parent 85362eb commit 18d4a25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Check the doc comment for the meanings of the generic parameters.
```rust
use rand::prelude::*;

use fss_rs::prg::Aes256HirosePrg;
use fss_rs::dcf::prg::Aes256HirosePrg;
use fss_rs::dcf::{Dcf, DcfImpl};

let keys: [[u8; 32]; 2] = thread_rng().gen();
let prg = Aes256HirosePrg::new(std::array::from_fn(|i| &keys[i]));
let prg = Aes256HirosePrg::<16, 2>::new(std::array::from_fn(|i| &keys[i]));
// DCF for example
let dcf = DcfImpl::<16, 16, _>::new(prg);
```
Expand Down

0 comments on commit 18d4a25

Please sign in to comment.