Skip to content

Commit db5bdd9

Browse files
committed
[SE-0206] Update CHANGELOG.md
(cherry picked from commit 84b9e21)
1 parent 38dd0ed commit db5bdd9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,11 @@ Swift 4.2
6666
The standard library now uses a high-quality, randomly seeded, universal
6767
hash function, represented by the new public `Hasher` struct.
6868

69-
“Random seeding” means that `hashValue` properties will return different
70-
values on each execution of a Swift program. This is an important tool for
71-
improving the reliability of the standard library’s hashing collections,
72-
`Set` and `Dictionary`. In particular, random seeding enables better
73-
protection against (accidental or deliberate) hash-flooding attacks.
69+
“Random seeding” varies the result of `hashValue` on each execution of a
70+
Swift program, improving the reliability of the standard library's hashed
71+
collections such as `Set` and `Dictionary`. In particular, random seeding
72+
enables better protection against (accidental or deliberate) hash-flooding
73+
attacks.
7474

7575
This change fulfills a long-standing prophecy in Hashable's documentation:
7676

@@ -111,10 +111,10 @@ Swift 4.2
111111
implementations above are equivalent to the ones synthesized by the
112112
compiler, and can be removed without changing the meaning of the code.
113113

114-
Automatic synthesis has also been extended to support deriving `hashValue`
115-
from `hash(into:)`, and vice versa. Therefore, code that only implements
116-
`hashValue` continues to work in Swift 4.2. This new functionality works for
117-
all types that can implement `Hashable`, including classes.
114+
Synthesis has also been extended to support deriving `hashValue` from
115+
`hash(into:)`, and vice versa. Therefore, code that only implements
116+
`hashValue` continues to work in Swift 4.2. This new compiler functionality
117+
works for all types that can implement `Hashable`, including classes.
118118

119119
Note that these changes don't affect Foundation's hashing interface. Classes
120120
that subclass `NSObject` should override the `hash` property, like before.

0 commit comments

Comments
 (0)