I don't think they really do that in jail anymore, but I do know for a fact that the inmates do get drugs/roids/etc from the guards or else smuggeled in somehow by other means.
A while back, it was just a simple of stuffing stuff in a tennis ball and throwing it over the courtyard fence.