lib/random: Make some functions in random.c inline
authorHelmut Schaa <helmut.schaa@googlemail.com>
Fri, 13 Dec 2013 13:17:14 +0000 (14:17 +0100)
committerBen Pfaff <blp@nicira.com>
Fri, 13 Dec 2013 16:35:15 +0000 (08:35 -0800)
commit2737b46d8703b0c100e5a7f1997545f647bb7c5d
treebcdc652b8e23b0196b0a42745e66baede3e6db9f
parente08220312417d7ca803530c73e23ab19e8da72b0
lib/random: Make some functions in random.c inline

random_range, random_uint8 and random_uint16 are basically just wrappers
around random_uint32. Hence, don't export these functions so the compiler
can be smarter when it comes to optimizations.

Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/random.c
lib/random.h