summaryrefslogtreecommitdiff
path: root/src/librandom/surf_autoinit.c
blob: b7774c0b343db19b242a71c916be2c1aa7994406 (plain)
1
2
3
4
5
6
7
8
9
10
/* ISC license. */

#include <skalibs/surf.h>

void surf_autoinit (SURFSchedule *ctx, char *s, unsigned int n)
{
  if (!ctx->in[0] && !ctx->in[1] && !ctx->in[2] && !ctx->in[3])
    surf_init(ctx) ;
  surf(ctx, s, n) ;
}