File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const isLittleEndian = computeIsLittleEndian();
3838async function * randomFileContents ( ) {
3939 let counter = 1 ;
4040 while ( true ) {
41- const numBytes = ( ( counter * 1192.18851371 ) % 2056 ) ;
41+ const numBytes = ( ( ( counter * 1192.18851371 ) | 0 ) % 2056 ) ;
4242 counter ++ ;
4343 let result = new ArrayBuffer ( numBytes ) ;
4444 let view = new Uint8Array ( result ) ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ const isLittleEndian = computeIsLittleEndian();
3838function * randomFileContents ( ) {
3939 let counter = 1 ;
4040 while ( true ) {
41- const numBytes = ( ( counter * 1192.18851371 ) % 2056 ) ;
41+ const numBytes = ( ( ( counter * 1192.18851371 ) | 0 ) % 2056 ) ;
4242 counter ++ ;
4343 let result = new ArrayBuffer ( numBytes ) ;
4444 let view = new Uint8Array ( result ) ;
You can’t perform that action at this time.
0 commit comments