B2G/gecko/toolkit/components/url-classifier/tests/unit/test_prefixset.js
//    N: number of random lookups to make.
number of random lookups to make.
number of random lookups to make .
function doRandomLookups(pset, prefixes, N) {
  for (let i = 0; i < N; i++) {
    let randInt = prefixes[0];
    while (arrContains(prefixes, randInt))
      randInt = Math.floor(Math.random() * Math.pow(2, 32));
    do_check_false(wrappedProbe(pset, randInt));
  }
}
function doRandomLookups ( pset , prefixes , N ) { for ( let i = 0 ; i < N ; i ++ ) { let randInt = prefixes [ 0 ] ; while ( arrContains ( prefixes , randInt ) ) randInt = Math . floor ( Math . random ( ) * Math . pow ( 2 , 32 ) ) ; do_check_false ( wrappedProbe ( pset , randInt ) ) ; } }
N: number of random lookups to make.
N : number of random lookups to make .