function getRandomFilledBinaryArray (size) {
    var uint8Arr = new Uint8Array(size);
    for (var j = 0; j < size; j++) {
        uint8Arr[j] = Math.floor(Math.random() * 256);
    }
    return uint8Arr;
  }
Generates an unique identifier using a prefix, based on a currentList and repeatable or not depending on the isMocked flag.

@param {string} prefix          The prefix to use in the identifier.
@param {array}  currentList     The current list of identifiers.
@param {bool}   isMocked        Boolean flag indicating if the test is mocked or not.
@return {string} A new unique identifier.