Tags: oklog/ulid
Tags
ulid: add DefaultEntropy() and Make() (#81) Users of this library have opened many issues regarding the difficulty of choosing an entropy source that is safe for concurrent use. This commit introduces a thread safe per process monotonically increase `DefaultEntropy()` function as well as an easy to use `Make()` function, aimed at users that want safe defaults chosen for them. Co-authored-by: Peter Bourgon <[email protected]>
ulid: add DefaultEntropy() and Make() (#81) Users of this library have opened many issues regarding the difficulty of choosing an entropy source that is safe for concurrent use. This commit introduces a thread safe per process monotonically increase `DefaultEntropy()` function as well as an easy to use `Make()` function, aimed at users that want safe defaults chosen for them. Co-authored-by: Peter Bourgon <[email protected]>
TestMonotonicSafe fails sometimes (#44) * TestMonotonicSafe fails sometimes * TestMonotonicSafe: vary seed and inc * Check for MonotonicReader interface instead of *monotonic * rm seed/inc variation in test, it's not relevant * TestMonotonicSafe should use multiple goroutines * t.Fatalf must be called in the same goroutine as the test
PreviousNext