mirror of
https://github.com/cubixle/radius-rs.git
synced 2026-04-30 17:08:45 +01:00
Adjust the signature
This commit is contained in:
+1
-1
@@ -17,7 +17,7 @@ pub struct Packet {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl 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 mut rng = rand::thread_rng();
|
||||||
let authenticator = (0..16).map(|_| rng.gen()).collect::<Vec<u8>>();
|
let authenticator = (0..16).map(|_| rng.gen()).collect::<Vec<u8>>();
|
||||||
Packet {
|
Packet {
|
||||||
|
|||||||
Reference in New Issue
Block a user