Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow playground defaults #189

Merged
merged 10 commits into from
Mar 30, 2018
Merged

Allow playground defaults #189

merged 10 commits into from
Mar 30, 2018

Conversation

kinggoesgaming
Copy link
Member

I'm submitting a ...

  • bug fix
  • feature enhancement
  • deprecation or removal
  • refactor

Description

Allow compatibility with play.integer32.com and play.rust-lang.org

Motivation

Allows people to use uuid in interactive code snippets

Tests

Current tests passing

Related Issue(s)

Supercedes #155

@Dylan-DPC-zz
Copy link
Member

bors: r+

bors bot added a commit that referenced this pull request Mar 30, 2018
189: Allow playground defaults r=Dylan-DPC a=kinggoesgaming

**I'm submitting a ...**
  - [ ] bug fix
  - [x] feature enhancement
  - [ ] deprecation or removal
  - [ ] refactor

# Description
Allow compatibility with play.integer32.com and play.rust-lang.org

# Motivation
Allows people to use `uuid` in interactive code snippets

# Tests
Current tests passing

# Related Issue(s)
Supercedes #155
@bors
Copy link
Contributor

bors bot commented Mar 30, 2018

@bors bors bot merged commit 8821ccf into master Mar 30, 2018
@Dylan-DPC-zz Dylan-DPC-zz deleted the defaults branch March 30, 2018 06:56
@@ -402,12 +402,30 @@ impl Uuid {
/// Note that not all versions can be generated currently and `None` will be
/// returned if the specified version cannot be generated.
///
/// To generate a random UUID (`UuidVersion::Md5`), then the `v3`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should note in the docs that we're generating these random uuids off the well-known dns namespace uuid.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm actually we probably don't need to, since we have enough randomness in the hash we jam into the uuid the base shouldn't matter so much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants