123456789101112131415161718192021222324252627282930313233343536373839 |
- #include <stdlib.h>
- #include <string.h>
- #include <limits.h>
- int seed48_r (unsigned short int seed16v[3], struct drand48_data *buffer)
- {
-
- memcpy (buffer->__old_x, buffer->__x, sizeof (buffer->__x));
-
- buffer->__x[2] = seed16v[2];
- buffer->__x[1] = seed16v[1];
- buffer->__x[0] = seed16v[0];
- buffer->__a = 0x5deece66dull;
- buffer->__c = 0xb;
- buffer->__init = 1;
- return 0;
- }
- libc_hidden_def(seed48_r)
|