[vlc-commits] init_rand48(): only run once
Rafaël Carré
git at videolan.org
Sun Jun 19 17:59:17 CEST 2011
vlc | branch: master | Rafaël Carré <rafael.carre at gmail.com> | Sun Jun 19 11:52:00 2011 -0400| [def9c8ca575462c7e37476a5da5fc8739c03b441] | committer: Rafaël Carré
init_rand48(): only run once
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=def9c8ca575462c7e37476a5da5fc8739c03b441
---
src/misc/rand.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/misc/rand.c b/src/misc/rand.c
index 82c67c3..5ee6dcc 100644
--- a/src/misc/rand.c
+++ b/src/misc/rand.c
@@ -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;
More information about the vlc-commits
mailing list