Go to file
rick.chan 3ebed9b0e4 兼容 c++.
Signed-off-by: rick.chan <chenyang@autoai.com>
2020-11-27 11:02:43 +08:00
example Moved initialization code into uuid4_init() function 2018-09-27 22:14:10 +01:00
src 兼容 c++. 2020-11-27 11:02:43 +08:00
LICENSE Updated copyright year; 2016->2018 2018-09-27 22:03:42 +01:00
README.md Moved initialization code into uuid4_init() function 2018-09-27 22:14:10 +01:00

README.md

uuid4

A tiny C library for generating uuid4 strings.

Usage

uuid4.c and uuid4.h should be dropped into an existing project. The library contains two functions: one to initialize the library and one to generate a uuid4 string and store it in a buffer of at least UUID4_LEN in size.

char buf[UUID4_LEN];
uuid4_init();
uuid4_generate(buf);
printf("%s\n", buf);

uuid4_generate() is not thread-safe.

License

This library is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.