Modern UUID Generator for .NET
High-performance, secure, and thread-safe UUID implementation
Features
High Performance
Optimized for speed with zero-allocation operations
Secure by Default
Cryptographically secure random number generation
Thread Safe
Safe for concurrent operations in multi-threaded environments
Memory Efficient
Zero-allocation options for high-throughput scenarios
Quick Start
// Install via NuGet
dotnet add package UUID
// Generate a new UUID
var id = new UUID();
// Convert to string
string str = id.ToString();
// Parse from string
UUID parsed = UUID.Parse("0123456789abcdef0123456789abcdef");
Performance Benchmarks
Single Thread
20.5M
UUIDs/second
4 Threads
78.2M
UUIDs/second
8 Threads
152.3M
UUIDs/second
16 Threads
289.8M
UUIDs/second