Make /dev/urandom fd static, or it pick up random descriptor

(stack garbadge) and read from it

Should go into 2.2
This commit is contained in:
ache 1997-03-08 18:01:40 +00:00
parent 90ad3da1ab
commit 9b7e3298e3

View File

@ -1137,7 +1137,7 @@ long
get_random()
{
static int how = 0;
int fd;
static int fd;
long rnd;
if (how == 0) {