Have you checked out chernos channel he has a whole series on ray tracing. He was able to render that image in 22s.
yt video improving ray tracing program
In his recent video he said each thread needs a seperate instance of rand and implementing that he got a 2.5x speed up.