From: Wolfgang Denk Date: Fri, 11 May 2012 22:43:48 +0200 Subject: [U-Boot] [PATCH v4 1/3] lib: add rand() function In-Reply-To: <201205112232.20664.michael@walle.cc> References: <1336671134-16342-1-git-send-email-michael@walle.cc> <1336671134-16342-2-git-send-email-michael@walle.cc> <20120511192002.477D120348D@gemini.denx.de> <201205112232.20664.michael@walle.cc> Message-ID: <20120511204348.0171C206496@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Michael Walle, In message <201205112232.20664.michael@walle.cc> you wrote: > > > > +static unsigned int y = 2463534242U; > > > > Hm... can we introduce at least a little entropy somewhere? > Mh? A user is supposed to seed via srand(). Then why initialize y at all? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de And now remains That we find out the cause of this effect, Or rather say, the cause of this defect... -- Hamlet, Act II, Scene 2