From 3fe8ba7f1b9fa7e38fa03f55fd898c8ca2a0e996 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Fri, 10 Oct 2025 18:06:37 +0200 Subject: Update to newest rust; replace rand with std random --- server/src/network/register.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'server/src/network/register.rs') diff --git a/server/src/network/register.rs b/server/src/network/register.rs index 8617af4d..47dac4a8 100644 --- a/server/src/network/register.rs +++ b/server/src/network/register.rs @@ -16,13 +16,13 @@ */ use crate::server::Server; -use anyhow::{bail, Result}; -use hurrycurry_protocol::{registry::Submission, VERSION}; +use anyhow::{Result, bail}; +use hurrycurry_protocol::{VERSION, registry::Submission}; use log::{debug, error, info, warn}; -use rand::random; -use reqwest::{header::USER_AGENT, Client, Url}; +use reqwest::{Client, Url, header::USER_AGENT}; use std::{ net::{IpAddr, Ipv4Addr, Ipv6Addr}, + random::random, str::FromStr, sync::Arc, time::Duration, @@ -56,7 +56,7 @@ impl Register { register_uri, players: 0, port, - secret: random(), + secret: random(..), state, ip4_client: if no4 { None -- cgit v1.3