use better seed
This commit is contained in:
parent
aeb76fe6c0
commit
dc98c7a22f
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ pub fn temporaryName(allocator: *std.mem.Allocator) ![]u8 {
|
||||||
var nam = try allocator.alloc(u8, template.len);
|
var nam = try allocator.alloc(u8, template.len);
|
||||||
std.mem.copy(u8, nam, template);
|
std.mem.copy(u8, nam, template);
|
||||||
|
|
||||||
const seed = @bitCast(u64, std.time.timestamp());
|
const seed = @truncate(u64, @bitCast(u128, std.time.nanoTimestamp()));
|
||||||
var r = std.rand.DefaultPrng.init(seed);
|
var r = std.rand.DefaultPrng.init(seed);
|
||||||
|
|
||||||
var fill = nam[template_start.len..nam.len];
|
var fill = nam[template_start.len..nam.len];
|
||||||
|
|
Loading…
Reference in a new issue