What do you mean by generating an ID at random? You can have the problem of collision, even if, I agree, the problem is present also if you cut the ID genrated by the hash function.
What do you mean by generating an ID at random? You can have the problem of collision, even if, I agree, the problem is present also if you cut the ID genrated by the hash function.