common: Move random-number functions into their own header

Create a new rand.h header file and move functions into it, to reduce
the size of common.h

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Simon Glass 2019-11-14 12:57:13 -07:00 committed by Tom Rini
parent c076e5c9b3
commit 840ef4d43b
5 changed files with 43 additions and 6 deletions

View file

@ -8,6 +8,7 @@
*/
#include <common.h>
#include <rand.h>
static unsigned int y = 1U;