Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
def9c8ca
Commit
def9c8ca
authored
Jun 19, 2011
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init_rand48(): only run once
parent
e61839ac
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/misc/rand.c
src/misc/rand.c
+1
-0
No files found.
src/misc/rand.c
View file @
def9c8ca
...
@@ -176,6 +176,7 @@ static void init_rand48 (void)
...
@@ -176,6 +176,7 @@ static void init_rand48 (void)
if
(
!
rand48
.
init
)
if
(
!
rand48
.
init
)
{
{
vlc_rand_bytes
(
rand48
.
subi
,
sizeof
(
rand48
.
subi
));
vlc_rand_bytes
(
rand48
.
subi
,
sizeof
(
rand48
.
subi
));
rand48
.
init
=
true
;
#if 0 // short would be more than 16-bits ?
#if 0 // short would be more than 16-bits ?
for (unsigned i = 0; i < 3; i++)
for (unsigned i = 0; i < 3; i++)
subi[i] &= 0xffff;
subi[i] &= 0xffff;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment