The optical and X-ray flickering of XTE J1118+480