Crystal field effects on the magnetic fluctuations in RAl2 and RNi2