projects
/
platform
/
upstream
/
nsjail.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0745827
)
util: mroe debugging
author
Robert Swiecki
<robert@swiecki.net>
Thu, 6 Jul 2017 12:37:10 +0000
(14:37 +0200)
committer
Robert Swiecki
<robert@swiecki.net>
Thu, 6 Jul 2017 12:37:10 +0000
(14:37 +0200)
util.c
patch
|
blob
|
history
diff --git
a/util.c
b/util.c
index f856288766ad8d5c5636481a108e028b02ba9a15..1ddd6914d95355bf5f884b43f93664b3ce0cca82 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-235,7
+235,7
@@
static void utilRndInitThread(void)
#endif /* defined(__NR_getrandom) */
int fd = open("/dev/urandom", O_RDONLY | O_CLOEXEC);
if (fd == -1) {
- PLOG_D("Couldn't open /dev/urandom for reading");
+ PLOG_D("Couldn't open /dev/urandom for reading
. Using gettimeofday fall-back
");
struct timeval tv;
gettimeofday(&tv, NULL);
rndX = tv.tv_usec + ((uint64_t) tv.tv_sec << 32);