为请求 ID、夹具批次和可排序的 v1 示例在浏览器本地生成 UUID 和 GUID。
A UUID (Universally Unique Identifier), also called a GUID (Globally Unique Identifier), is a 128-bit value used to identify records, requests, and resources across systems. The common text form uses 32 hexadecimal characters split into five groups with hyphens.
这个页面会把预设、版本、数量和输出模式保存在查询参数中,然后根据这些设置在浏览器里生成新的 UUID。UUID v4 是请求 ID 和公开标识符的默认选择。UUID v1 为可排序示例保留时间顺序,而浏览器端生成会使用随机 node id,因为浏览器不会暴露 MAC 地址。
While collisions are theoretically possible, the probability is astronomically low (1 in 2^122 for v4). You would need to generate 1 billion UUIDs per second for 85 years to have a 50% chance of collision.
大多数请求 ID、夹具和公开标识符都应使用 v4。如果可排序示例更适合你的工作流,并且创建时间顺序比隐藏该时间信号更重要,则使用 v1。