/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */

/* 
 * PRNG
 */

#include <types.h>
#include <iosctypes.h>
#include <csl.h>
#include <bsl.h>
#include <ioslibc.h>
#include <sha1.h>
#include <aes.h>


/* define for device without RNG */

static int seed = 0;
unsigned char 
computeRand()
{
    seed = 0x343fd * seed + 0x269ec3;
    return ((seed )& 0xff);
}

