projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix gc-random module.
[pspp]
/
lib
/
gc-gnulib.c
diff --git
a/lib/gc-gnulib.c
b/lib/gc-gnulib.c
index 111c4a19e41836765dc7f09c7c31ba498af908dc..a91a7c39a4aedcd89a4a2671d13e9cd57292757f 100644
(file)
--- a/
lib/gc-gnulib.c
+++ b/
lib/gc-gnulib.c
@@
-109,6
+109,9
@@
randomize (int level, char *data, size_t datalen)
break;
}
+ if (strcmp (device, "no") == 0)
+ return GC_RANDOM_ERROR;
+
fd = open (device, O_RDONLY);
if (fd < 0)
return GC_RANDOM_ERROR;