Teenager Hasaranga took a hat-trick on his international debut as Sri Lanka avenged their loss in the first ODI.
Opener Vusi Sibanda struck 44 off 33 balls and Malcolm Waller hammered 49 off 23 as Zimbabwe posted 187-6 before restricting Bangladesh to 156-6 in a packed Sheikh Abu Nasir Stadium.
Malcolm Waller was initially reported after the second Test against Bangladesh in Khulna in November 2014 and, following an independent assessment carried out in December, was found to bowl with an illegal action in respect of his off-spin deliveries.
India survive scare as they pull off a close four-run win over Zimbabwe to take a 1-0 lead in three-match series. Catch all the highlights of the match here
Zimbabwe made four changes to their ODI squad ahead of the three-match series against India starting in Harare on July 10.
Malcolm Waller was reported after the second Test match against Bangladesh in Khulna in November.
Zimbabwe off-spinner Malcolm Waller is now required to undergo testing within 21 days, and, during this period, he is permitted to continue bowling in international cricket until the results of the testing are known.
Waller struck 70 off 100 balls with 14 fours and Raza made 60 off 118 with 10 fours at Harare Sports Club. At the close, Elton Chigumbura was on 40 with Shingi Masakadza on 2.
Malcolm Waller hit a single off the fifth ball of the last over to take Zimbabwe to a dramatic one-wicket win in the third and final One-Day International against New Zealand at Queens Sports Club on Tuesday.