From bfe3676feb5548993292b806de45a1cbc746c05f Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Wed, 28 Jan 2009 23:03:17 +0000 Subject: spelling/grammar/consistency review part II Originally committed as revision 16848 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavutil/random.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'libavutil/random.c') diff --git a/libavutil/random.c b/libavutil/random.c index 468ab71783..dbec6354d9 100644 --- a/libavutil/random.c +++ b/libavutil/random.c @@ -1,8 +1,8 @@ /* * Mersenne Twister Random Algorithm * Copyright (c) 2006 Ryan Martell - * Based on A C-program for MT19937, with initialization improved 2002/1/26. Coded by - * Takuji Nishimura and Makoto Matsumoto. + * Based on a C program for MT19937, with initialization improved 2002/1/26. + * Coded by Takuji Nishimura and Makoto Matsumoto. * * This file is part of FFmpeg. * @@ -23,8 +23,9 @@ /** -see http://en.wikipedia.org/wiki/Mersenne_twister for an explanation of this algorithm. -*/ + * See http://en.wikipedia.org/wiki/Mersenne_twister + * for an explanation of this algorithm. + */ #include #include "random.h" @@ -52,7 +53,7 @@ void av_random_init(AVRandomState *state, unsigned int seed) unsigned int prev= state->mt[index - 1]; state->mt[index] = (1812433253UL * (prev ^ (prev>>30)) + index) & 0xffffffff; } - state->index= index; // will cause it to generate untempered numbers the first iteration + state->index= index; // Will cause it to generate untempered numbers in the first iteration. } #if LIBAVUTIL_VERSION_MAJOR < 50 @@ -62,7 +63,8 @@ void av_init_random(unsigned int seed, AVRandomState *state) } #endif -/** generate AV_RANDOM_N words at one time (which will then be tempered later) (av_random calls this; you shouldn't) */ +/** Generates AV_RANDOM_N words at one time (which will then be tempered later). + * av_random calls this; you shouldn't. */ void av_random_generate_untempered_numbers(AVRandomState *state) { int kk; -- cgit v1.2.3