Skip to content

integration-cli: Seed rand in makeRandomString#10795

Merged
jessfraz merged 1 commit intomoby:masterfrom
ahmetb:integration-cli/makeRandomString
Feb 16, 2015
Merged

integration-cli: Seed rand in makeRandomString#10795
jessfraz merged 1 commit intomoby:masterfrom
ahmetb:integration-cli/makeRandomString

Conversation

@ahmetb
Copy link
Contributor

@ahmetb ahmetb commented Feb 14, 2015

Current use of makeRandomString is to create really
long strings. In #10794, I used them to create nearly-unique
unix paths for the daemon. Although collions are harmless and don't
fail the tests, this prevents the same strings from being created
consistently in every run by seeding a rand.Random instance.

Signed-off-by: Ahmet Alp Balkan ahmetalpbalkan@gmail.com
cc: @unclejack @jfrazelle

Current uses of `makeRandomString` is to create really
long strings. In #10794, I used them to create nearly-unique
unix paths for the daemon. Although collions are harmless and
don't fail the tests, this prevents the same strings from being
created consistently in every run by seeding rand.Random.

Signed-off-by: Ahmet Alp Balkan <ahmetalpbalkan@gmail.com>
@unclejack
Copy link
Contributor

LGTM

@jessfraz
Copy link
Contributor

cool LGTM

jessfraz pushed a commit that referenced this pull request Feb 16, 2015
…domString

integration-cli: Seed rand in makeRandomString
@jessfraz jessfraz merged commit 546f481 into moby:master Feb 16, 2015
@ahmetb ahmetb deleted the integration-cli/makeRandomString branch February 16, 2015 18:10
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.

5 participants