lkml.org 
[lkml]   [2012]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[Bcache v13 05/16] Export get_random_int()
    This is needed for bcache - it needs a fast source of random numbers for
    the throttling code in order to fuzz IO sizes, but the random numbers
    don't need to be any good (and it immediately converts it to a
    binomially distributed random number with popcount anyways).

    Signed-off-by: Kent Overstreet <koverstreet@google.com>
    ---
    drivers/char/random.c | 1 +
    1 files changed, 1 insertions(+), 0 deletions(-)

    diff --git a/drivers/char/random.c b/drivers/char/random.c
    index 54ca8b2..ec4dd79 100644
    --- a/drivers/char/random.c
    +++ b/drivers/char/random.c
    @@ -1357,6 +1357,7 @@ unsigned int get_random_int(void)

    return ret;
    }
    +EXPORT_SYMBOL(get_random_int);

    /*
    * randomize_range() returns a start address such that
    --
    1.7.9.rc2


    \
     
     \ /
      Last update: 2012-05-10 06:01    [W:0.034 / U:7.352 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site