← Back to index
|
Original Bugzilla link
Bug 18680 – std.random.LinearCongruentialEngine has opEquals but no toHash
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-28T13:20:41Z
Last change time
2018-11-22T04:49:02Z
Assigned to
No Owner
Creator
Jack Stouffer
Blocks
17206
Comments
Comment #0
by jack — 2018-03-28T13:20:41Z
Comment #1
by n8sh.secondary — 2018-10-17T00:25:26Z
The proper fix is to remove `opEquals` from LinearCongruentialEngine since it does the same thing as default struct comparison.
Comment #2
by github-bugzilla — 2018-11-22T04:49:01Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/dc1a3d3efa2c56d3b067947371ba330f87fa2adf
Fix Issue 18680 - std.random.LinearCongruentialEngine has opEquals but no toHash The custom opEquals is unnecessary. Autogenerated struct equals is correct.