David Miller was handed the wicketkeeping gloves in preparation for his likely role as Quinton de Kock's back-up in the World Cup.
The win clinched a 5-0 series clean sweep for South Africa, continuing a horror run for Sri Lanka.
The 12th edition of the Indian Premier League (IPL) is set to start on March 23.
AB de Villiers marked India, the hosts England, the defending champions Australia and Pakistan as the favourites to win the World Cup.
JP Duminy was a part of the South African squad in the 2011 and 2015 World Cups
Sri Lanka have lost all eight ODIs under Lasith Malinga's captaincy and the veteran was dismissed in almost embarrassing circumstances.
Hashim Amla was not selected for the first three matches of the series, all won by South Africa.
Aiden Markram was named in South Africa's squad for the final two one-day internationals against Sri Lanka.
South Africa's 71-run win, according to the Duckworth/Lewis/Stern formula, gave them a winning 3-0 lead in the five-match series.
Kagiso Rabada, bowling at more than 150 km/h at times, took three for 43 as Sri Lanka were bowled out for 138 in reply to South Africa's 251.
Highlights: SA vs SL 2nd ODI: South Africa lead the five-match series 2-0.
Imran Tahir had made his ODI debut in 2011 and has played 95 matches for South Africa so far.
The hosts won the toss at the Wanderers Stadium, asked Sri Lanka to bat and bowled them out for 231.
Duanne Olivier was the man of the series against Pakistan after taking 24 wickets at an average of 14.70.
AB de Villiers will be available for the first seven rounds of the tournament.
This is South Africa's last 50-over assignment before the ICC World Cup 2019, starting on May 30 in the United Kingdom.
The unheralded Sri Lankans became the first team from Asia to win a Test series in South Africa.
Needing 197 runs to achieve a historic series win, Sri Lanka were 60 for two at the close of play on Day 2.