commit | d96bd01fb44544101796bd5b2e9a6ceae93ccb43 | [log] [tgz] |
---|---|---|
author | Michael Walle <michael@walle.cc> | Tue Jun 05 11:33:14 2012 +0000 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Sat Jul 07 14:07:32 2012 +0200 |
tree | a10e3bb54c3a410ea568ce0d69ff9ef42a601145 | |
parent | dff2896483f0f56491c9cd640c570a764ca6aeb9 [diff] [blame] |
lib: add rand() function It's a PRNG using the simple and fast xorshift method. Signed-off-by: Michael Walle <michael@walle.cc> Cc: Wolfgang Denk <wd@denx.de>
diff --git a/lib/Makefile b/lib/Makefile index 1e8478f..0ca45fc 100644 --- a/lib/Makefile +++ b/lib/Makefile
@@ -66,6 +66,7 @@ COBJS-y += time.o COBJS-$(CONFIG_BOOTP_PXE) += uuid.o COBJS-y += vsprintf.o +COBJS-$(CONFIG_RANDOM_MACADDR) += rand.o COBJS := $(COBJS-y) SRCS := $(COBJS:.o=.c)