]> git.proxmox.com Git - rustc.git/blob - vendor/rand_xorshift-0.1.0/src/lib.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / vendor / rand_xorshift-0.1.0 / src / lib.rs
1 // Copyright 2018 Developers of the Rand project.
2 //
3 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
4 // https://www.apache.org/licenses/LICENSE-2.0> or the MIT license
5 // <LICENSE-MIT or https://opensource.org/licenses/MIT>, at your
6 // option. This file may not be copied, modified, or distributed
7 // except according to those terms.
8
9 //! The xorshift random number generator.
10
11 #![doc(html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk.png",
12 html_favicon_url = "https://www.rust-lang.org/favicon.ico",
13 html_root_url = "https://docs.rs/rand_xorshift/0.1.0")]
14
15 #![deny(missing_docs)]
16 #![deny(missing_debug_implementations)]
17 #![doc(test(attr(allow(unused_variables), deny(warnings))))]
18
19 #![cfg_attr(not(all(feature="serde1", test)), no_std)]
20
21 extern crate rand_core;
22
23 #[cfg(feature="serde1")] extern crate serde;
24 #[cfg(feature="serde1")] #[macro_use] extern crate serde_derive;
25
26 // To test serialization we need bincode and the standard library
27 #[cfg(all(feature="serde1", test))] extern crate bincode;
28 #[cfg(all(feature="serde1", test))] extern crate std as core;
29
30 mod xorshift;
31
32 pub use self::xorshift::XorShiftRng;