repo.or.cz
/
gecko.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Bug 1888590 - Mark some subtests on trusted-types-event-handlers.html as failing...
[gecko.git]
/
third_party
/
rust
/
uuid
/
examples
/
random_uuid.rs
blob
897071c46861422a7719904132cd6f7356b056b1
1
//! Generating a random UUID.
2
//!
3
//! If you enable the `v4` feature you can generate random UUIDs.
4
5
#[test]
6
#[cfg(feature = "v4")]
7
fn generate_random_uuid() {
8
use uuid::Uuid;
9
10
let uuid = Uuid::new_v4();
11
12
assert_eq!(Some(uuid::Version::Random), uuid.get_version());
13
}
14
15
fn main() {}