Adjust the signature

This commit is contained in:
moznion
2020-11-24 01:06:23 +09:00
parent 04b962ab36
commit 139afbee25
+1 -1
View File
@@ -17,7 +17,7 @@ pub struct Packet {
}
impl Packet {
pub fn new(code: &Code, secret: &Vec<u8>) -> Self {
pub fn new(code: Code, secret: &Vec<u8>) -> Self {
let mut rng = rand::thread_rng();
let authenticator = (0..16).map(|_| rng.gen()).collect::<Vec<u8>>();
Packet {