There are many tournaments where seeded players (or at least some of them) receive a bye into the second round. This means that the first match this player plays is in the second round - against a player who got there after winning their first round match. For example, in the ATP tournament which is currently played in Barcelona, all seeded players received a bye into the second round.
If the player with the bye loses their first match, do they still get ranking points for the second round? In the other words, does the player with a bye who loses their second round match get the same number of points as the player who did not have a bye, won in the first round and loses in the second round?