1151497Sru/* 2104862Sru * Copyright (c) 1993 Martin Birgmeier 3104862Sru * All rights reserved. 4104862Sru * 5104862Sru * You may redistribute unmodified or modified versions of this source 6104862Sru * code provided that the above copyright notice and this and the 7104862Sru * following conditions are retained. 8104862Sru * 9104862Sru * This software is provided ``as is'', and comes with no warranties 10104862Sru * of any kind. I shall in no event be liable for anything that happens 11151497Sru * to anyone/anything when using this software. 12151497Sru */ 13104862Sru 14151497Sru#include <sys/cdefs.h> 15104862Sru__FBSDID("$FreeBSD$"); 16104862Sru 17104862Sru#include "rand48.h" 18104862Sru 19104862Srulong 20104862Srujrand48(unsigned short xseed[3]) 21104862Sru{ 22104862Sru _dorand48(xseed); 23104862Sru return ((long) xseed[2] << 16) + (long) xseed[1]; 24104862Sru} 25104862Sru