import std.experimental.allocator; import std.experimental.allocator.mallocator; import mir.random; auto hll = HLL(18); enum c = 100_000; auto rng = Random(unpredictableSeed); // Engines are allocated on stack or global foreach(_; 0 .. c) hll.put(rng.rand!ulong); puts("HLL++ test: counted ", hll.count, " unique values from ", c, " random values.");
Generic HyperLogLog++ implementation.