dvf / dvf/blockchain-book

Hashes - Random?

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
254
Forks
80
PR merge metrics
No merged PRs in 30d

Description

I realize I'm being a bit picky here, but hashes are not random; they are absolutely deterministic. On page 17 (and other places), the author states that a hash provides a "unique, random value." "Unique" is mostly true (except in the very unlikely event of a collision), but "random" is not. It may look random, but it isn't; as the author states in the very same paragraph, "the output is always predictable for the same input." That is the very opposite of random.

In future editions, I would suggest dropping "random" and simply staying with "unique." It gets your point across without adding any "confusion factors."

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.