[U-Boot] [PATCH v4 1/3] lib: add rand() function

Michael Walle michael at walle.cc
Fri May 11 22:32:20 CEST 2012


Am Freitag 11 Mai 2012, 21:20:02 schrieb Wolfgang Denk:
> Dear Michael Walle,
> 
> In message <1336671134-16342-2-git-send-email-michael at 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


More information about the U-Boot mailing list