You are comparing two different files here which are different even if the random generation wouldn't work