blob: 692ce2bb8a41cdc19ab5e7c18aa79fdb23d715a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
const std = @import("std");
const Self = @This();
content: []const u8,
id: u32,
pub fn from(content: []const u8) Self {
return .{
.content = content,
.id = std.hash.XxHash32.hash(4654, content),
};
}
|