These seems a bit silly - you don't need to hash the uniqid, it's already supposed to be unique!