diff --git a/Cargo.toml b/Cargo.toml index b1c82a7d4..c9bde7a72 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,26 +28,27 @@ default = ["web"] web = ["actix/http", "actix-service", "actix-utils", "actix-web", "actix-session/cookie-session", "rand", "serde", "serde_json"] [dependencies] -actix = "0.8.2" +actix = "0.8.3" log = "0.4" -backoff = "0.1" -derive_more = "0.14" -futures = "0.1.25" -tokio-io = "0.1" -tokio-codec = "0.1" -tokio-tcp = "0.1" -redis-async = "0.4" -time = "0.1" +backoff = "0.1.5" +derive_more = "0.15.0" +futures = "0.1.28" +tokio-io = "0.1.12" +tokio-codec = "0.1.1" +tokio-tcp = "0.1.3" +redis-async = "0.4.5" +time = "0.1.42" # actix web session -actix-web = { version = "1.0.0-rc", optional=true } -actix-utils = { version = "0.4.1", optional=true } -actix-service = { version = "0.4.0", optional=true } -actix-session = { version = "0.1.0", optional=true } -rand = { version="0.6.5", optional=true } -serde = { version="1.0", optional=true } -serde_json = { version="1.0", optional=true } +actix-web = { version = "1.0.3", optional = true } +actix-utils = { version = "0.4.2", optional = true } +actix-service = { version = "0.4.1", optional = true } +actix-session = { version = "0.2.0", optional = true } +rand = { version = "0.7.0", optional = true } +serde = { version = "1.0.94", optional = true } +serde_json = { version = "1.0.40", optional = true } +env_logger = "0.6.2" [dev-dependencies] env_logger = "0.6" diff --git a/src/session.rs b/src/session.rs index 315dc189e..9623c6c16 100644 --- a/src/session.rs +++ b/src/session.rs @@ -275,9 +275,8 @@ impl Inner { let (value, jar) = if let Some(value) = value { (value.clone(), None) } else { - let mut rng = OsRng::new().unwrap(); let value: String = iter::repeat(()) - .map(|()| rng.sample(Alphanumeric)) + .map(|()| OsRng.sample(Alphanumeric)) .take(32) .collect();