random: fix up sparse warnings

Add extern and static declarations to suppress sparse warnings

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Remove Warning

Signed-off-by: Chester Kener <Cl3Kener@gmail.com>