Mercurial > hg > dmlib
comparison src/dmperlin.c @ 2414:69a5af2eb1ea
Remove useless dmMemset().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 13 Jan 2020 23:27:01 +0200 |
parents | 81b561abb6e9 |
children | 04c035342960 |
comparison
equal
deleted
inserted
replaced
2413:902cc22018a1 | 2414:69a5af2eb1ea |
---|---|
73 int i, j; | 73 int i, j; |
74 | 74 |
75 if (ctx == NULL) | 75 if (ctx == NULL) |
76 return DMERR_NULLPTR; | 76 return DMERR_NULLPTR; |
77 | 77 |
78 dmMemset(ctx, 0, sizeof(*ctx)); | 78 memset(ctx, 0, sizeof(*ctx)); |
79 | 79 |
80 if (seed < 0) | 80 if (seed < 0) |
81 return DMERR_INVALID_ARGS; | 81 return DMERR_INVALID_ARGS; |
82 | 82 |
83 srand(seed); | 83 srand(seed); |