Commit 2e00f1c4 authored by Vladimir Malenovsky's avatar Vladimir Malenovsky
Browse files

do not update seed[1] when j == k in the first run

parent 20b5ce0d
Loading
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6140,6 +6140,7 @@ void create_random_vector_fx(
    Word16 i, j, k;
    Word16 scale1, scale2;
    Word32 L_tmp;

    /*
      Note: the constant 2144047674 is 0.0078f in Q38 from the float reference.
      It should read 0.0078125f, which is 1/128.Since 0.0078f is nor exactly
@@ -6185,7 +6186,7 @@ void create_random_vector_fx(
#ifdef FIX_2250_LARGE_DIFFERENCES_BETWEEN_BASOP_AND_FLOAT
        if ( element_mode != EVS_MONO )
        {
            k = abs_s( shr( Random( &seed[1] ), 7 ) ); /* Random( &seed[0] * 0.0078125f ) */
            k = abs_s( shr( Random( &k ), 7 ) ); 
        }
        else
        {