From 9b7e3298e3afbfccdf90e55fb717cf795ebca1a4 Mon Sep 17 00:00:00 2001 From: ache Date: Sat, 8 Mar 1997 18:01:40 +0000 Subject: [PATCH] Make /dev/urandom fd static, or it pick up random descriptor (stack garbadge) and read from it Should go into 2.2 --- games/fortune/fortune/fortune.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 5853bbf60cae..d3adb7ba138f 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) {