diff options
author | ache <ache@FreeBSD.org> | 1997-03-08 18:01:40 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-03-08 18:01:40 +0000 |
commit | d7897ffa5fa38b438604c5c598a04d30b1d549a1 (patch) | |
tree | dd2d877378b49c50d7ce7631d06538d744de44ec /games | |
parent | 22b37bfd18cacaf020fa48f90f14139cd98a39da (diff) | |
download | FreeBSD-src-d7897ffa5fa38b438604c5c598a04d30b1d549a1.zip FreeBSD-src-d7897ffa5fa38b438604c5c598a04d30b1d549a1.tar.gz |
Make /dev/urandom fd static, or it pick up random descriptor
(stack garbadge) and read from it
Should go into 2.2
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 5853bbf..d3adb7b 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1137,7 +1137,7 @@ long get_random() { static int how = 0; - int fd; + static int fd; long rnd; if (how == 0) { |