Does Resist Energy stack with racial traits granting energy reistances?

The Aasimar race has a trait that grants the following:

Celestial Resistance: Aasimars have acid resistance 5, cold resistance 5, and electricity resistance 5.

If I cast Resist Energy on an Aasimar choosing cold, does it replace the racial resist or stack with it for the spell duration?