Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
fccc49a8
Commit
fccc49a8
authored
Jul 03, 2015
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix read_random_bytes yet again.
Sigh.
parent
76bdfef3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
kernel.c
kernel.c
+3
-4
kernel.h
kernel.h
+1
-1
No files found.
kernel.c
View file @
fccc49a8
...
...
@@ -84,11 +84,10 @@ gettime(struct timeval *tv)
/* If /dev/urandom doesn't exist, this will fail with ENOENT, which the
caller will deal with gracefully. */
ssize_
t
read_random_bytes
(
void
*
buf
,
size_
t
len
)
in
t
read_random_bytes
(
void
*
buf
,
in
t
len
)
{
int
fd
;
size_t
rc
;
int
fd
,
rc
;
fd
=
open
(
"/dev/urandom"
,
O_RDONLY
);
if
(
fd
<
0
)
{
...
...
kernel.h
View file @
fccc49a8
...
...
@@ -77,6 +77,6 @@ int kernel_addresses(char *ifname, int ifindex, int ll,
struct
kernel_route
*
routes
,
int
maxroutes
);
int
if_eui64
(
char
*
ifname
,
int
ifindex
,
unsigned
char
*
eui
);
int
gettime
(
struct
timeval
*
tv
);
ssize_t
read_random_bytes
(
void
*
buf
,
size_
t
len
);
int
read_random_bytes
(
void
*
buf
,
in
t
len
);
int
kernel_older_than
(
const
char
*
sysname
,
int
version
,
int
sub_version
);
int
kernel_has_ipv6_subtrees
(
void
);
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