bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [address@hidden: Help with entropy?]


From: Michael Casadevall
Subject: Re: [address@hidden: Help with entropy?]
Date: Wed, 20 Jun 2007 12:13:43 -0400

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

entropy_write_offset is the value of where the last write ended. You need to add 1 to move the pointer past the last time it was written. I'm modifying the driver to print out more debugging info and figure out what was wrong with the offsets (which might be the problem)
Michael

On Jun 20, 2007, at 9:37 AM, <olafBuddenhagen@gmx.net> wrote:

Hi,

I don't get this part:

/* Setup the offset pointer to add data */
 offset = entropy_write_offset + 1;
 if (offset + sizeof(unsigned long)  == ENTROPYBUFSIZE) {
   offset = 0;
 }

Why the +1 ? You sure that's really what you want?...

-antrik-

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)

iD8DBQFGeVI3V/FBeJ6jsZQRAoUwAJ9Exa8a1SN2d4oDI5I+jCT7Ha89tgCdGU+W
mYsA8LzQ0B+WntjTJPFx99w=
=GPCw
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]