1. 首页
  2. 数据库
  3. 其它
  4. c语言生成随机uuid编码示例

c语言生成随机uuid编码示例

上传者: 2021-01-16 23:26:39上传 PDF文件 28.34KB 热度 13次
c语言生成随机uuid编码 代码如下:#include #include /** * Create random UUID * * @param buf – buffer to be filled with the uuid string */char *random_uuid( char buf[37] ){ const char *c = “89ab”; char *p = buf; int n; for( n = 0; n < 16; ++n ) { int b = rand()%5;
下载地址
用户评论