Board Thread:The Quarters - Q & A/@comment-202.3.77.218-20150828175749/@comment-103.246.106.9-20150829062749

Thanks a lot! This worked perfectly. So I also tried inserting a new checklist item, with say any random id like 'abcd1234'. It worked. Of course, we do not want such bad IDs, so I looked up the Habitica source code, and I found the UID generator they were using - rfc4122 (See the second answer at http://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript). This is the exact generator that the api uses. As far as the source code is concerned, they rely on the randomness of this generator (the chance of collision is almost one in a million for 3x10^15 ids)

So would you consider it safe if I generate this ID at the client side and ask the server to create a checklist item for me using this?