Fixed rand crate to comply with latest rust