@@ -94,7 +94,7 @@ protected TestStruct GetTestStruct()
9494 A = ( byte ) random . Next ( ) ,
9595 B = ( short ) random . Next ( ) ,
9696 C = ( ushort ) random . Next ( ) ,
97- D = ( int ) random . Next ( ) ,
97+ D = random . Next ( ) ,
9898 E = ( uint ) random . Next ( ) ,
9999 F = ( ( long ) random . Next ( ) << 32 ) + random . Next ( ) ,
100100 G = ( ( ulong ) random . Next ( ) << 32 ) + ( ulong ) random . Next ( ) ,
@@ -142,7 +142,7 @@ public void BaseTypeTest(Type testType, WriteType writeType)
142142 }
143143 else if ( testType == typeof ( int ) )
144144 {
145- RunTestWithWriteType ( ( int ) random . Next ( ) , writeType ) ;
145+ RunTestWithWriteType ( random . Next ( ) , writeType ) ;
146146 }
147147 else if ( testType == typeof ( uint ) )
148148 {
@@ -347,10 +347,10 @@ void RunTypeTestLocal<T>(T[] val, WriteType wt) where T : unmanaged
347347 else if ( testType == typeof ( long ) )
348348 {
349349 RunTypeTestLocal ( new [ ] {
350- ( ( long ) random . Next ( ) << 32 ) + ( long ) random . Next ( ) ,
351- ( ( long ) random . Next ( ) << 32 ) + ( long ) random . Next ( ) ,
352- ( ( long ) random . Next ( ) << 32 ) + ( long ) random . Next ( ) ,
353- ( ( long ) random . Next ( ) << 32 ) + ( long ) random . Next ( )
350+ ( ( long ) random . Next ( ) << 32 ) + random . Next ( ) ,
351+ ( ( long ) random . Next ( ) << 32 ) + random . Next ( ) ,
352+ ( ( long ) random . Next ( ) << 32 ) + random . Next ( ) ,
353+ ( ( long ) random . Next ( ) << 32 ) + random . Next ( )
354354 } , writeType ) ;
355355 }
356356 else if ( testType == typeof ( ulong ) )
0 commit comments