[英]How to generate uuid which will be the same for each seed string?
I am wondering how to get the same uuid by using the same seed string. 我想知道如何通过使用相同的种子字符串来获得相同的uuid。 Any idea?
任何想法?
I'm not familiar with boost-uuid, but I think that what you need is a name-based UUID generator (see RFC-4122 Section 4.3 ). 我不熟悉boost-uuid,但我认为您需要的是基于名称的UUID生成器(请参阅RFC-4122第4.3节 )。 Read that section of the RFC to ensure it fits your requirements.
阅读RFC的那一部分,以确保它符合您的要求。
Googling a bit, I found that boost does support name-based UUIDs : 仔细搜索一下,我发现boost确实支持基于名称的UUID :
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.