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
2805b4ba
Commit
2805b4ba
authored
Oct 17, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rand: ASCII path, use utf8_open for close-on-exec
parent
25e2a7e8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/misc/rand.c
src/misc/rand.c
+2
-1
No files found.
src/misc/rand.c
View file @
2805b4ba
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include <fcntl.h>
#include <fcntl.h>
#include <unistd.h>
#include <unistd.h>
#include <pthread.h>
#include <pthread.h>
#include <vlc_charset.h>
#include <vlc_md5.h>
#include <vlc_md5.h>
...
@@ -57,7 +58,7 @@ static void vlc_rand_init (void)
...
@@ -57,7 +58,7 @@ static void vlc_rand_init (void)
uint8_t
key
[
BLOCK_SIZE
];
uint8_t
key
[
BLOCK_SIZE
];
/* Get non-predictible value as key for HMAC */
/* Get non-predictible value as key for HMAC */
int
fd
=
open
(
randfile
,
O_RDONLY
);
int
fd
=
utf8_
open
(
randfile
,
O_RDONLY
);
if
(
fd
==
-
1
)
if
(
fd
==
-
1
)
return
;
/* Uho! */
return
;
/* Uho! */
...
...
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