Don't use rand() to generate unique ids in object cache.