/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 1996-2010 AT&T Intellectual Property *
* and is licensed under the *
* Common Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
/*
* prng
*/
#include <fnv.h>
#define prng_description \
"32 bit PRNG (pseudo random number generator) hash."
[+mpy?The 32 bit PRNG multiplier.]:[number:=0x01000193]\
[+add?The 32 bit PRNG addend.]:[number:=0]\
[+init?The PRNG initial value. 0xffffffff is used if \anumber\a is omitted.]:?[number:=0x811c9dc5]\
"
#define prng_scale 0
typedef struct Prng_s
{
} Prng_t;
static Sum_t*
{
register const char* s;
register const char* t;
register const char* v;
register int i;
{
}
s = name;
while (*(t = s))
{
for (t = s, v = 0; *s && *s != '-'; s++)
if (*s == '=' && !v)
v = s;
i = (v ? v : s) - t;
else if (strneq(t, "add", i))
else if (strneq(t, "init", i))
if (*s == '-')
s++;
}
{
}
}
static int
{
return 0;
}
static int
{
register unsigned char* b = (unsigned char*)s;
register unsigned char* e = b + n;
while (b < e)
return 0;
}