mirror of
https://github.com/NLnetLabs/krill.git
synced 2026-10-01 05:44:52 +02:00
Possible fix for #77 to use v4 UUID session_id as per RFC-4122.
Warning: NOT tested.
This commit is contained in:
@@ -10,6 +10,7 @@ derive_more = "^0.13"
|
||||
rand = "^0.5"
|
||||
rpki = "^0.5"
|
||||
serde = { version = "^1.0", features = ["derive"] }
|
||||
uuid = "0.7"
|
||||
|
||||
[dependencies.krill_commons]
|
||||
path = "../commons"
|
||||
|
||||
@@ -6,6 +6,7 @@ extern crate rand;
|
||||
extern crate rpki;
|
||||
#[macro_use]
|
||||
extern crate serde;
|
||||
extern crate uuid;
|
||||
extern crate krill_commons;
|
||||
|
||||
pub mod publishers;
|
||||
|
||||
+2
-4
@@ -34,10 +34,8 @@ pub struct RrdpInitDetails {
|
||||
|
||||
impl RrdpInitDetails {
|
||||
pub fn init_new(base_uri: uri::Https, repo_dir: PathBuf) -> RrdpInit {
|
||||
use rand::{thread_rng, Rng};
|
||||
let mut rng = thread_rng();
|
||||
let rnd: u32 = rng.gen();
|
||||
let session = format!("{}", rnd);
|
||||
use uuid::Uuid;
|
||||
let session = format!("{}", Uuid::new_v4());
|
||||
|
||||
StoredEvent::new(
|
||||
&id(),
|
||||
|
||||
Reference in New Issue
Block a user