"The only way that has ever been discovered to have a lot of people cooperate together voluntarily is through the free market. And that's why it's so essential to preserving individual freedom."
- Milton Friedman

Update to MakeID.h
Friday, April 3, 2015 | Permalink

If you've been using MakeID.h I suggest you download the latest version. The previous version had a minor bug that made it copy an element too much when it reduced the number of ranges. This didn't impact functionality, but in edge-cases it could result in a read outside of allocated memory, which if you're really unlucky could cause a crash. Thanks to Markus Billeter for reporting the issue.

Name

Comment

Enter the code below



Jenny Cao
Wednesday, May 6, 2015



Jeb Bradwell
Sunday, June 5, 2016

Solid implementation. This is definitely a great direction

matthew
Sunday, July 8, 2018

There's another off by one bug, in GetAvailableIDs: for each range, count is incremented by one less than the actual number of free IDs in that range. GetLargestContinuousRange, however, does the counting correctly.