<commit_before>#ifndef DELAY_H
#define DELAY_H

#include <stdlib.h>

typedef struct drand48_data delay_t;

static inline void delay_init(delay_t * state, int id)
{
  srand48_r(id + 1, state);
}

static inline void delay_exec(delay_t * state)
{
  long n;
  lrand48_r(state, &n);

  int j;
  for (j = 50; j < 50 + n % 100; ++j) {
    __asm__ ("nop");
  }
}

#endif /* end of include guard: DELAY_H */<commit_msg>Use time based seed for generating random numbers.<commit_after>#ifndef DELAY_H
#define DELAY_H

#include <time.h>
#include <stdlib.h>

typedef struct drand48_data delay_t;

static inline void delay_init(delay_t * state, int id)
{
  srand48_r(time(NULL) + id, state);
}

static inline void delay_exec(delay_t * state)
{
  long n;
  lrand48_r(state, &n);

  int j;
  for (j = 50; j < 50 + n % 100; ++j) {
    __asm__ ("nop");
  }
}

#endif /* end of include guard: DELAY_H */
{'fraction_non_alphanumeric': 0.1346153846153846, 'fraction_numerical': 0.030542986425339366, 'mean_word_length': 3.8097826086956523, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 6, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2661099', 'n_tokens_mistral': 390, 'n_tokens_neox': 352, 'n_words': 103}