comparison dcrypt/crypto/prngs/PRNGFromHash.d @ 28:ad687db713a4

Further reworked the code for hash padding. Replaced all instances of 'char[]' with 'string' and removed a few 'const' modifiers as per Glenn Haecker's patch for D2 compatibility. Updated CONTRIBUTORS file.
author Thomas Dixon <reikon@reikon.us>
date Sun, 10 May 2009 22:38:48 -0400
parents 8b5eaf3c2979
children 2b4bccdc8387
comparison
equal deleted inserted replaced
27:8b5eaf3c2979 28:ad687db713a4
23 seed, 23 seed,
24 state; 24 state;
25 uint index; 25 uint index;
26 } 26 }
27 27
28 char[] name() 28 string name()
29 { 29 {
30 if (hash is null) 30 if (hash is null)
31 throw new NotInitializedError(name()~": PRNG not initialized"); 31 throw new NotInitializedError(name()~": PRNG not initialized");
32 32
33 return hash.name~"PRNG"; 33 return hash.name~"PRNG";