Skip to content

Commit

Permalink
Export get_random_int()
Browse files Browse the repository at this point in the history
Needed for bcache - need a cheap source of random numbers for perturbing
IO sizes, for rate limiting IO to the SSD.

Signed-off-by: Kent Overstreet <koverstreet@google.com>
CC: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Kent Overstreet committed Mar 23, 2013
1 parent 84759c6 commit 1f8e8ed
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/char/random.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1f8e8ed

Please sign in to comment.