mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
[XFS] reducing the number of random number functions.
Patch provided by Joe Perches SGI-PV: 961696 SGI-Modid: xfs-linux-melb:xfs-kern:28209a Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Tim Shimmin <tes@sgi.com>
This commit is contained in:
@@ -80,7 +80,7 @@ xfs_error_test(int error_tag, int *fsidp, char *expression,
|
||||
int i;
|
||||
int64_t fsid;
|
||||
|
||||
if (random() % randfactor)
|
||||
if (random32() % randfactor)
|
||||
return 0;
|
||||
|
||||
memcpy(&fsid, fsidp, sizeof(xfs_fsid_t));
|
||||
|
||||
Reference in New Issue
Block a user