aboutsummaryrefslogtreecommitdiff
path: root/lib/libcxx/src/algorithm.cpp
diff options
context:
space:
mode:
authorFrank Denis <github@pureftpd.org>2020-08-20 22:36:57 +0200
committerFrank Denis <github@pureftpd.org>2020-08-20 23:02:10 +0200
commit446597bd3c935be632287a8ad6cfd72892d674e6 (patch)
treed80af39c7fd2036b2d832407cdb39c86e87cdf5b /lib/libcxx/src/algorithm.cpp
parentf92a5d79440402233bd0215e2bb2aeeb4f333931 (diff)
downloadzig-446597bd3c935be632287a8ad6cfd72892d674e6.tar.gz
zig-446597bd3c935be632287a8ad6cfd72892d674e6.zip
Remove the reset() function from hash functions
Justification: - reset() is unnecessary; states that have to be reused can be copied - reset() is error-prone. Copying a previous state prevents forgetting struct members. - reset() forces implementation to store sensitive data (key, initial state) in memory even when they are not needed. - reset() is confusing as it has a different meaning elsewhere in Zig.
Diffstat (limited to 'lib/libcxx/src/algorithm.cpp')
0 files changed, 0 insertions, 0 deletions