ulid icon indicating copy to clipboard operation
ulid copied to clipboard

ulids in C++, Header Only

Results 7 ulid issues
Sort by recently updated
recently updated
newest added

This addresses #13. ### Changes - Change all timing calls to use chrono time points to ensure ms units (not seconds) are always encoded as the timestamp portion - Fix...

This fixes issue #11 by static casting the entire expression to ensure the evaluation will properly be between 0-255. I tested this fix locally in an application to confirm it...

### Problem Description Per the [ULID spec](https://github.com/ulid/spec), the timestamp portion of the ULID is supposed to be the Unix epoch time in ms. The current implementation has several API calls...

### Issue Description As mentioned in https://github.com/suyash/ulid/commit/b93d569c5e6130f2575ece11e5ebe65ebfba463c#r43494808, the changes to `EncodeEntropyRand` in #7 cause the random component to be 0 when the function is called on a ulid. The problem...

Could you clarify please is there monotonic sort order implemented? ``` c++ using namespace std; map values; mt19937 rng; rng.seed(random_device()()); uniform_int_distribution dist(1, 100000); for (auto i = 0; i <...

Using this library in a linux application, compiled with g++: ``` /home/xxxx/percona-server-8.0.32-24/plugin/ulid/ulid/src/ulid_uint128.hh:11:5: warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef] #if _MSC_VER > 0 ^~~~~~~~ ``` A quick google...