D'uh. The explicit reseed was happening at the wrong security/privelige

levels.
This commit is contained in:
Mark Murray 2000-11-25 20:08:07 +00:00
parent badfcb1bef
commit 5d4e386e64
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69174

View File

@ -107,7 +107,7 @@ random_open(dev_t dev, int flags, int fmt, struct proc *p)
static int static int
random_close(dev_t dev, int flags, int fmt, struct proc *p) random_close(dev_t dev, int flags, int fmt, struct proc *p)
{ {
if ((flags & FWRITE) && (securelevel > 0 || suser(p))) if ((flags & FWRITE) && !(securelevel > 0 || suser(p)))
random_reseed(); random_reseed();
return 0; return 0;
} }