Make secureHash accept any openArray[char], not only string. (#10988)
* Make `secureHash` accept any `openArray[char]`, not only `string`. * Put in a changelog entry as per Araq request.
This commit is contained in:
parent
1494d88fa2
commit
1394978347
2 changed files with 4 additions and 1 deletions
|
|
@ -49,6 +49,9 @@
|
||||||
|
|
||||||
- `osproc.execProcess` now also takes a `workingDir` parameter.
|
- `osproc.execProcess` now also takes a `workingDir` parameter.
|
||||||
|
|
||||||
|
- `std/sha1.secureHash` now accepts `openArray[char]`, not `string`. (Former
|
||||||
|
successful matches should keep working, though former failures will not.)
|
||||||
|
|
||||||
- `options.UnpackError` is no longer a ref type and inherits from `system.Defect`
|
- `options.UnpackError` is no longer a ref type and inherits from `system.Defect`
|
||||||
instead of `system.ValueError`.
|
instead of `system.ValueError`.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -194,7 +194,7 @@ proc finalize(ctx: var Sha1State): Sha1Digest =
|
||||||
|
|
||||||
# Public API
|
# Public API
|
||||||
|
|
||||||
proc secureHash*(str: string): SecureHash =
|
proc secureHash*(str: openArray[char]): SecureHash =
|
||||||
## Generates a ``SecureHash`` from a ``str``.
|
## Generates a ``SecureHash`` from a ``str``.
|
||||||
##
|
##
|
||||||
## **See also:**
|
## **See also:**
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue