Skip to content

Commit

Permalink
Fix signature for MersenneTwister (#228)
Browse files Browse the repository at this point in the history
* Fix signature for MersenneTwister

* Increment version number
  • Loading branch information
sethaxen committed Jul 6, 2020
1 parent eabdd74 commit 19468cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "ChainRules"
uuid = "082447d4-558c-5d27-93f4-14fc19e9eca2"
version = "0.7.5"
version = "0.7.6"

[deps]
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
Expand Down
4 changes: 2 additions & 2 deletions src/rulesets/Random/random.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
frule(Δargs, ::typeof(MersenneTwister), args...) = MersenneTwister(args...), Zero()
frule(Δargs, ::Type{MersenneTwister}, args...) = MersenneTwister(args...), Zero()

function rrule(::typeof(MersenneTwister), args...)
function rrule(::Type{MersenneTwister}, args...)
function MersenneTwister_rrule(ΔΩ)
return (NO_FIELDS, map(_ -> Zero(), args)...)
end
Expand Down

2 comments on commit 19468cd

@nickrobinson251
Copy link
Contributor

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/17512

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.7.6 -m "<description of version>" 19468cd9f2b4511d1907f1ac2672feddcf40fa73
git push origin v0.7.6

Please sign in to comment.