OpenUDID的工作原理

Tuy*_*yen 8 iphone android udid

你知道OpenUDID如何生成唯一的设备ID吗?
2个设备是否有可能具有相同的OpenUDID值?

编辑1:

设备重置后OpenUDID会改变吗?

编辑2:

如果碰撞是可能的,那么OpenUDID有什么替代方案可以更好地工作.

Ste*_*ton 4

如果有办法查看源代码就好了……

// Next we try to use an alternative method which uses the host name, process ID, and a time stamp
// We then hash it with md5 to get 32 bytes, and then add 4 extra random bytes
// Collision is possible of course, but unlikely and suitable for most industry needs (e.g.. aggregate tracking)
Run Code Online (Sandbox Code Playgroud)