mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-30 18:28:40 +01:00
Adjust the signature
This commit is contained in:
+1
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user