Use sha1 instead of crc
This commit is contained in:
parent
4873db4c72
commit
e9516e6308
4 changed files with 197 additions and 96 deletions
|
|
@ -96,7 +96,7 @@ proc addInclDep(w: PRodWriter, dep: string) =
|
|||
var resolved = dep.findModule(w.module.info.toFullPath)
|
||||
encodeVInt(fileIdx(w, dep), w.inclDeps)
|
||||
add(w.inclDeps, " ")
|
||||
encodeVInt(secureHashFile(resolved), w.inclDeps)
|
||||
encodeStr($secureHashFile(resolved), w.inclDeps)
|
||||
add(w.inclDeps, rodNL)
|
||||
|
||||
proc pushType(w: PRodWriter, t: PType) =
|
||||
|
|
@ -440,7 +440,7 @@ proc writeRod(w: PRodWriter) =
|
|||
f.write(rodNL)
|
||||
|
||||
var crc = "CRC:"
|
||||
encodeVInt(w.crc, crc)
|
||||
encodeStr($w.crc, crc)
|
||||
f.write(crc)
|
||||
f.write(rodNL)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue