Oh, and I'll note that Heimdal's libroken has a gettimeofday() implementation for Windows which appears to have better precision than ours; I would suggest using that code in the libkrb5support function. (On a complete tangent, lib/hcrypto/rand-w32.c may provide clues as to how to get k5_get_os_entropy to work on XP.)