Added better random generation based on seed + system time