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

Commit 2e744fcb authored by Akinobu Mita's avatar Akinobu Mita Committed by Linus Torvalds
Browse files

mmc: rename random32() to prandom_u32()



Use preferable function name which implies using a pseudo-random
number generator.

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Chris Ball <cjb@laptop.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 38b682b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -120,8 +120,8 @@ static void mmc_should_fail_request(struct mmc_host *host,
	    !should_fail(&host->fail_mmc_request, data->blksz * data->blocks))
		return;

	data->error = data_errors[random32() % ARRAY_SIZE(data_errors)];
	data->bytes_xfered = (random32() % (data->bytes_xfered >> 9)) << 9;
	data->error = data_errors[prandom_u32() % ARRAY_SIZE(data_errors)];
	data->bytes_xfered = (prandom_u32() % (data->bytes_xfered >> 9)) << 9;
}

#else /* CONFIG_FAIL_MMC_REQUEST */