Re: Problem with random.c and PPC

From: Tom Rini (trini@kernel.crashing.org)
Date: Thu Aug 15 2002 - 14:03:36 EST


On Thu, Aug 15, 2002 at 12:25:56PM -0600, Andreas Dilger wrote:

> On Aug 15, 2002 15:14 +0000, henrique wrote:
> > Hello !!!
> >
> > I am trying to use a program (ipsec newhostkey) that uses the random device
> > provided by the linux-kernel. In a x86 machine the program works fine but
> > when I tried to run the program in a PPC machine it doesn't work.
> >
> > Looking carefully I have discovered that the problem is in the driver
> > random.c. When the program tries to read any amount of data it locks and
> > never returns. It happens because the variable "random_state->entropy_count"
> > is always zero, that is, any random number is generated at all !!!??.
> >
> > Does anyone know anything about this problem ? Any sort of help is very
> > welcomed.
>
> Maybe the PPC keyboard/mouse drivers do not add randomness?

Well, how is this set for the i386 ones? I grepped around and I didn't
really see anything, so I'm sort-of confused.

-- 
Tom Rini (TR1265)
http://gate.crashing.org/~trini/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Aug 15 2002 - 22:00:40 EST