[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [address@hidden: Help with entropy?]
From: |
address@hidden |
Subject: |
Re: [address@hidden: Help with entropy?] |
Date: |
Wed, 20 Jun 2007 16:57:31 +0200 |
On Wed, 20 Jun 2007 15:37:02 +0200
<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?...
You mean its more clean to write:
offset = ++entropy_write_offset;
Or do you mean this is possibly a "off by one"-bug?