https://github.com/atomicptr/uuid4
A simple C++23 header only implementation of UUID v4
https://github.com/atomicptr/uuid4
cpp cpp23 header-only uuid uuidv4
Last synced: 10 months ago
JSON representation
A simple C++23 header only implementation of UUID v4
- Host: GitHub
- URL: https://github.com/atomicptr/uuid4
- Owner: atomicptr
- License: 0bsd
- Created: 2024-09-15T12:31:54.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-09-15T12:32:12.000Z (over 1 year ago)
- Last Synced: 2025-03-25T02:49:57.653Z (11 months ago)
- Topics: cpp, cpp23, header-only, uuid, uuidv4
- Language: C++
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# uuid4
A simple C++23 header only implementation of UUID v4
**Note**: This uses std::random_device so keep that in mind, for my use case I wanted something small that does not create collisions within hundreds of thousands and this is good enough for that
## Usage
```cpp
auto uuid = uuid4::generate();
// fa565435-2003-425a-8e47-6aa4eb3cc147
```
## Installation
Copy the file into your project and use it :)
## License
BSD 0-Clause