mirror of
https://gitlab.xiph.org/xiph/icecast-server.git
synced 2025-02-02 15:07:36 -05:00
Feature: Just swallow parts of the config as extra PRNG seed
This commit is contained in:
parent
2be5318067
commit
75fc9bb751
@ -173,6 +173,10 @@ void prng_configure(ice_config_t *config)
|
|||||||
if (!initialized)
|
if (!initialized)
|
||||||
return;
|
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_read_seeds(config->prng_seed, 1);
|
||||||
prng_cross_seed();
|
prng_cross_seed();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user