Re: [PATCH] Fix os-linux.h: os_random_long()

From: Shawn Lewis <shawnlewis_at_google.com>
Date: Thu, 26 Jul 2007 11:46:13 -0700

Actually, don't apply this. It will break other parts of fio that expect
os_random_long to be non-negative.

On 7/26/07, Shawn Lewis <shawnlewis_at_google.com> wrote:
>
> diff --git a/os/os-linux.h b/os/os-linux.h
> index 8c8c390..700f9d0 100644
> --- a/os/os-linux.h
> +++ b/os/os-linux.h
> @@ -199,7 +199,7 @@ static inline long os_random_long(os_ran
> {
> long val;
>
> - lrand48_r(rs, &val);
> + mrand48_r(rs, &val);
> return val;
> }
>
>
>
Received on Thu Jul 26 2007 - 20:46:13 CEST

This archive was generated by hypermail 2.2.0 : Thu Jul 26 2007 - 21:00:02 CEST