Use uuid instead of rand

Hi, today we had a problem of overriding the data which was inserted same time, and rand was same.
What do you think if we use uuid instead of rand?
Thanks.