<commit_before>/* ISC license. */

#include <skalibs/sysdeps.h>

#if defined(SKALIBS_HASARC4RANDOM)

#include <skalibs/nonposix.h>
#include <stdlib.h>
#include <skalibs/random.h>

void random_buf_early (char *s, size_t n)
{
  arc4random_buf(s, n) ;
}

#elif defined(SKALIBS_HASGETRANDOM) && defined(SKALIBS_HASGRNDINSECURE)

#include <errno.h><commit_msg> Don't use arc4random() for early random on Linux<commit_after>/* ISC license. */

#include <skalibs/sysdeps.h>

#if defined(SKALIBS_HASARC4RANDOM) && !defined(__linux__)

#include <skalibs/nonposix.h>
#include <stdlib.h>
#include <skalibs/random.h>

void random_buf_early (char *s, size_t n)
{
  arc4random_buf(s, n) ;
}

#elif defined(SKALIBS_HASGETRANDOM) && defined(SKALIBS_HASGRNDINSECURE)

#include <errno.h>
{'fraction_non_alphanumeric': 0.14304291287386217, 'fraction_numerical': 0.006501950585175552, 'mean_word_length': 6.064220183486238, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, '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': '4916944', 'n_tokens_mistral': 344, 'n_tokens_neox': 338, 'n_words': 60}