1
0
mirror of https://gitlab.xiph.org/xiph/icecast-server.git synced 2024-12-04 14:46:30 -05:00

Update: Also seed with the length of our seed

This commit is contained in:
Philipp Schafft 2020-10-22 07:37:45 +00:00
parent 1654cadab3
commit 8c567e5005

View File

@ -133,6 +133,7 @@ void prng_write(const void *buffer, size_t len)
thread_mutex_lock(&digest_a_lock);
digest_write(digest_a, buffer, len);
digest_write(digest_a, &len, sizeof(len));
thread_mutex_unlock(&digest_a_lock);
}