language changes: rand went its own crate; some --test fixes.