Skip to content

Commit

Permalink
Changes to make (hopefully more) reproducible between different Julia…
Browse files Browse the repository at this point in the history
… versions

Was using IOBuffer data member 'data', which does not seem to be stable. Replaced it by 'take!'.
  • Loading branch information
Adomas Baliuka authored and Adomas Baliuka committed Apr 9, 2024
1 parent 5e66f85 commit d2ee5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function hash_sparse_matrix(H::SparseMatrixCSC)
write(io, H.rowval)
write(io, H.nzval)

update!(ctx, io.data)
update!(ctx, take!(io))

return digest!(ctx)
end

0 comments on commit d2ee5b8

Please sign in to comment.