Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1f8e8ed0 authored by Kent Overstreet's avatar Kent Overstreet
Browse files

Export get_random_int()



Needed for bcache - need a cheap source of random numbers for perturbing
IO sizes, for rate limiting IO to the SSD.

Signed-off-by: default avatarKent Overstreet <koverstreet@google.com>
CC: "Theodore Ts'o" <tytso@mit.edu>
parent 84759c6d
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1485,6 +1485,7 @@ unsigned int get_random_int(void)

	return ret;
}
EXPORT_SYMBOL(get_random_int);

/*
 * randomize_range() returns a start address such that