diff options
author | Diego Biurrun <diego@biurrun.de> | 2009-01-28 23:03:17 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2009-01-28 23:03:17 +0000 |
commit | bfe3676feb5548993292b806de45a1cbc746c05f (patch) | |
tree | 18ad073de9e9d1ef37ef08fe31de7929e11f04a3 /libavutil/random.c | |
parent | 7b484a7a177b689f6f3ae8f16935dd47ff5120c3 (diff) | |
download | ffmpeg-bfe3676feb5548993292b806de45a1cbc746c05f.tar.gz |
spelling/grammar/consistency review part II
Originally committed as revision 16848 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/random.c')
-rw-r--r-- | libavutil/random.c | 14 |
1 files changed, 8 insertions, 6 deletions
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 <stdio.h> #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; |