The review of std.hash package

Dmitry Olshansky dmitry.olsh at gmail.com
Wed Aug 15 01:13:26 PDT 2012


On 15-Aug-12 11:41, Kagamin wrote:
> On Thursday, 9 August 2012 at 09:59:48 UTC, David Nadlinger wrote:
>>> In this case, it needs to work like a reduce algorithm, because it is
>>> a reduce algorithm. Need to find a way to make this work.
>>
>> Hash functions are _not_ analogous to reduce(), because the operation
>> performed by reduce() is stateless, whereas hash functions generally
>> have some internal state.
>
> An example of stateless hash in .net:
> http://msdn.microsoft.com/en-us/library/xa627k19.aspx

AFAIK it'a method of HashAlgorithm Object.

http://msdn.microsoft.com/en-us/library/c06s9c55

It also includes TransformBlock & TransformFinalBlock. It does contain 
state of course.



More information about the Digitalmars-d mailing list