Zig
Zig
Generate UUID
See more Encryption Examples
Demonstrates how to generate a random UUID string (also known as GUID) having the standard UUID format such as "de305d54-75b4-431b-adb2-eb6b9e546014".Chilkat Zig Downloads
const std = @import("std");
const chilkat = @import("chilkat");
pub fn main(init: std.process.Init) !void {
const alloc = init.arena.allocator();
const crypt = try chilkat.Crypt2.init();
defer crypt.deinit();
const uuid = try crypt.generateUuid(alloc);
std.debug.print("{s}\n", .{uuid});
}