/*******************************************************************************
 *  rand16.c - Generate 16 bit pseudo-random numbers.
 *
 *  Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/ 
 *  ALL RIGHTS RESERVED 
 * 
*/

#include <inttypes.h>
#include "emeter-toolkit.h"

int16_t rand16(void)
{
    static uint16_t rndnum;

    rndnum = rndnum*31821U + 13849U;
    return rndnum;
}
