use set_rand_seed() instead of srand(timestamp)

master
YuQing 2026-06-09 16:46:00 +08:00
parent 6a658d3ea6
commit 2c949c126c
1 changed files with 1 additions and 1 deletions

View File

@ -892,7 +892,7 @@ void sf_set_current_time()
{ {
g_current_time = time(NULL); g_current_time = time(NULL);
g_sf_global_vars.up_time = g_current_time; g_sf_global_vars.up_time = g_current_time;
srand(g_sf_global_vars.up_time); set_rand_seed();
} }
int sf_global_init(const char *log_filename_prefix) int sf_global_init(const char *log_filename_prefix)