]> git.notmuchmail.org Git - notmuch/commitdiff
Switch from random to sequential thread identifiers.
authorCarl Worth <cworth@cworth.org>
Mon, 8 Feb 2010 19:33:33 +0000 (11:33 -0800)
committerCarl Worth <cworth@cworth.org>
Tue, 9 Feb 2010 19:14:11 +0000 (11:14 -0800)
The sequential identifiers have the advantage of being guaranteed to
be unique (until we overflow a 64-bit unsigned integer), and also take
up half as much space in the "notmuch search" output (16 columns
rather than 32).

This change also has the side effect of fixing a bug where notmuch
could block on /dev/random at startup (waiting for some entropy to
appear). This bug was hit hard by the test suite, (which could easily
exhaust the available entropy on common systems---resulting in large
delays of the test suite).


No differences found