From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Walle Date: Fri, 11 May 2012 22:32:20 +0200 Subject: [U-Boot] [PATCH v4 1/3] lib: add rand() function In-Reply-To: <20120511192002.477D120348D@gemini.denx.de> References: <1336671134-16342-1-git-send-email-michael@walle.cc> <1336671134-16342-2-git-send-email-michael@walle.cc> <20120511192002.477D120348D@gemini.denx.de> Message-ID: <201205112232.20664.michael@walle.cc> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Am Freitag 11 Mai 2012, 21:20:02 schrieb Wolfgang Denk: > Dear Michael Walle, > > In message <1336671134-16342-2-git-send-email-michael@walle.cc> you wrote: > > It's a PRNG using the simple and fast xorshift method. > > ... > > > +static unsigned int y = 2463534242U; > > Hm... can we introduce at least a little entropy somewhere? Mh? A user is supposed to seed via srand(). -- michael