projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d68ccc0
)
random-util: fix indentation
author
Lennart Poettering
<lennart@poettering.net>
Wed, 7 Nov 2018 17:52:41 +0000
(18:52 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 8 Nov 2018 08:44:27 +0000
(09:44 +0100)
src/basic/random-util.c
patch
|
blob
|
history
diff --git
a/src/basic/random-util.c
b/src/basic/random-util.c
index
3989bb9
..
b6d1cfd
100644
(file)
--- a/
src/basic/random-util.c
+++ b/
src/basic/random-util.c
@@
-97,8
+97,8
@@
int genuine_random_bytes(void *p, size_t n, bool high_quality_required) {
have_syscall = true;
return -EIO;
} else if (errno == ENOSYS)
-
/* We lack the syscall, continue with reading from /dev/urandom. */
-
have_syscall = false;
+ /* We lack the syscall, continue with reading from /dev/urandom. */
+ have_syscall = false;
else if (errno == EAGAIN) {
/* The kernel has no entropy whatsoever. Let's remember to
* use the syscall the next time again though.