-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Understood. I would describe that as allocating the hash, not writing
it, which is why I was confused.

On 02/17/2014 12:32 AM, DavidVorick wrote:
> In src/common/hash.go:
> 
>> @@ -0,0 +1,43 @@ +package common + +import ( +	"crypto/rand" +
>> "hash" +	"math/big" +) + +func HashedRandomData(h hash.Hash,
>> length uint64) (hash string, data string) {
> 
> "writing the hash before calling the data":
> 
> h := sha256.New() HashedRandomData(...)
> 
> so ultimately not too bad lol. I didn't realize we could use this
> to not need to call New() so many times. I guess it can stay this
> way.
> 
> — Reply to this email directly or view it on GitHub 
> <https://github.com/Siacoin/Sia/pull/12/files#r9782559>.
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJTAZ8LAAoJEHP1nN3uZoHuh4AH/3/Xt8wA4nMFLL1akwtQi+CQ
XYO0unozErDlc1dw6gsSX7MqL9TmfHEHnYzaYzJxJ2nDUxbUhchmiwekFFQo9owx
rfUtAFR+QyPzHGiD07r/nWptIJiENDkJzolT5qQlqsfiGyYMiCKvy5/lFKdzan1o
TK+fCBrvnNP5LcOqoRUBuPU0L79hYRzf/thOwiuodkIQj6La8Aj7wPG/PT6NZzs9
BwzHN833vTpKI0PQ/W2cRWMfXrrHkNHlOG77uJ+oYofTjiZu5mMDnZToDy921dZ/
GKBWXleMIL9Aqt26NIjjS+sfimWRgp1HP6TJXfe9r2EImxTKyL1m35iOl2y/dYw=
=u7Ko
-----END PGP SIGNATURE-----