Commit def9c8ca authored by Rafaël Carré's avatar Rafaël Carré

init_rand48(): only run once

parent e61839ac
......@@ -176,6 +176,7 @@ static void init_rand48 (void)
if (!rand48.init)
{
vlc_rand_bytes (rand48.subi, sizeof (rand48.subi));
rand48.init = true;
#if 0 // short would be more than 16-bits ?
for (unsigned i = 0; i < 3; i++)
subi[i] &= 0xffff;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment