Use time() instead of rand()
Use time() instead of rand() as prefix for uniqid()