+ while (len) {
+ if (len >= sizeof(int64_t)) {
+ *((int64_t *) ptr) = seed;
+ ptr += sizeof(int64_t);
+ len -= sizeof(int64_t);
+ } else if (len >= sizeof(int32_t)) {
+ *((int32_t *) ptr) = seed;
+ ptr += sizeof(int32_t);
+ len -= sizeof(int32_t);
+ } else if (len >= sizeof(int16_t)) {
+ *((int16_t *) ptr) = seed;
+ ptr += sizeof(int16_t);
+ len -= sizeof(int16_t);
+ } else {
+ *((int8_t *) ptr) = seed;
+ ptr += sizeof(int8_t);
+ len -= sizeof(int8_t);
+ }