This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH][BZ 14561] Separate rand and random seeds.
- From: OndÅej BÃlka <neleai at seznam dot cz>
- To: Roland McGrath <roland at hack dot frob dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Thu, 23 May 2013 21:21:21 +0200
- Subject: Re: [PATCH][BZ 14561] Separate rand and random seeds.
- References: <20130520190628 dot GA22088 at domone dot kolej dot mff dot cuni dot cz> <20130523191141 dot 1C6532C0A2 at topped-with-meat dot com>
On Thu, May 23, 2013 at 12:11:41PM -0700, Roland McGrath wrote:
> What's the motivation for the change?
Now srand function can change numbers from random and srandom can change
rand output.
A code that depends on not doing this it is bit contrived but separating
them is easy, so it looked like rigth thing.