From 18d4a25114db352d964d6ec4175bff688c2629e7 Mon Sep 17 00:00:00 2001 From: myl7 Date: Sun, 28 Jan 2024 21:49:15 +0800 Subject: [PATCH] Revert "Update PRG api in readme" This reverts commit 09512e53546c0ca80973db6ed12a32bc07f337b1. --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68330a3..072d2c3 100644 --- a/README.md +++ b/README.md @@ -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); ```