| 197 | |
| 198 | |
| 199 | static void DiB_fillNoise(void* buffer, size_t length) |
| 200 | { |
| 201 | unsigned const prime1 = 2654435761U; |
| 202 | unsigned const prime2 = 2246822519U; |
| 203 | unsigned acc = prime1; |
| 204 | size_t p=0; |
| 205 | |
| 206 | for (p=0; p<length; p++) { |
| 207 | acc *= prime2; |
| 208 | ((unsigned char*)buffer)[p] = (unsigned char)(acc >> 21); |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | |
| 213 | static void DiB_saveDict(const char* dictFileName, |
no outgoing calls
no test coverage detected