Replace uniqid calls with $this->getUniqueID so tests pass again on windows

@MorrisJobke @LukasReschke 
@LukasReschke We are removing the "more entropy" bit here, but I think it's fine?