1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-06-16 06:15:24 +00:00

Feature: Just swallow parts of the config as extra PRNG seed

This commit is contained in:
Philipp Schafft 2020-10-22 09:59:15 +00:00
parent 2be5318067
commit 75fc9bb751

View File

@ -173,6 +173,10 @@ void prng_configure(ice_config_t *config)
if (!initialized)
return;
prng_write(config->location, strlen(config->location));
prng_write(config->admin, strlen(config->admin));
prng_write(config->hostname, strlen(config->hostname));
prng_write(config, sizeof(*config));
prng_read_seeds(config->prng_seed, 1);
prng_cross_seed();
}