It's 100% sur when you're main character levelup and I think I got a vendor reset one more time when finishing a special quest (but not sure).