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

Update rand to 0.6 #23950

Merged
merged 1 commit into from Aug 11, 2019
Merged

Update rand to 0.6 #23950

merged 1 commit into from Aug 11, 2019

Conversation

@Eijebong
Copy link
Member

Eijebong commented Aug 11, 2019

I changed the isaac random to always be the 32 bits one because the 64
bits version doesn't work with ReseedingRng as it requires the
generator's output to be u32 for some reasons.

The other main change is that the reseed method doesn't exist anymore
and now rand recreates a new generator when it needs to reseed so I had
to add a new method for when we don't want a generator to be reseeded.

Closes #23558


This change is Reviewable

I changed the isaac random to always be the 32 bits one because the 64
bits version doesn't work with ReseedingRng as it requires the
generator's output to be u32 for some reasons.

The other main change is that the reseed method doesn't exist anymore
and now rand recreates a new generator when it needs to reseed so I had
to add a new method for when we don't want a generator to be reseeded.

Closes #23558
@highfive
Copy link

highfive commented Aug 11, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/constellation/constellation.rs, components/script/dom/crypto.rs
  • @cbrewster: components/constellation/constellation.rs
  • @KiChjang: components/script/dom/crypto.rs
@highfive
Copy link

highfive commented Aug 11, 2019

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@Eijebong Eijebong mentioned this pull request Aug 11, 2019
16 of 19 tasks complete
@jdm
Copy link
Member

jdm commented Aug 11, 2019

@bors-servo r+
Thank you for finishing this!

@bors-servo
Copy link
Contributor

bors-servo commented Aug 11, 2019

📌 Commit c693ef7 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Aug 11, 2019

Testing commit c693ef7 with merge 4b44140...

bors-servo added a commit that referenced this pull request Aug 11, 2019
Update rand to 0.6

I changed the isaac random to always be the 32 bits one because the 64
bits version doesn't work with ReseedingRng as it requires the
generator's output to be u32 for some reasons.

The other main change is that the reseed method doesn't exist anymore
and now rand recreates a new generator when it needs to reseed so I had
to add a new method for when we don't want a generator to be reseeded.

Closes #23558

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23950)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 11, 2019

☀️ Test successful - linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 4b44140 to master...

@bors-servo bors-servo merged commit c693ef7 into servo:master Aug 11, 2019
3 checks passed
3 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.