/* Return value: TRUE if an entry was successfully removed. FALSE if there are no entries that can be removed.  */
static cairo_bool_t _cairo_cache_remove_random(cairo_cache_t *cache)
/* Return value: TRUE if an entry was successfully removed. FALSE if there are no entries that can be removed.  */
static cairo_bool_t _cairo_cache_remove_random(cairo_cache_t *cache)
{
    cairo_cache_entry_t *entry;
    entry = _cairo_hash_table_random_entry (cache->hash_table,
					    cache->predicate);
    if (unlikely (entry == NULL))
	return FALSE;
    _cairo_cache_remove (cache, entry);
    return TRUE;
}