should seed on time(), not time. Duh.