Anything that changes frequently and (preferably) doesn't often repeat any values should work.
time() is almost universally used because it fulfills both criteria.
Other time-based functions work well too (like the lower bits of rdtsc), but time(0) is portable.