13016Swollman/* 23016Swollman * Copyright (c) 1993 Martin Birgmeier 33016Swollman * All rights reserved. 43016Swollman * 53016Swollman * You may redistribute unmodified or modified versions of this source 63016Swollman * code provided that the above copyright notice and this and the 73016Swollman * following conditions are retained. 83016Swollman * 93016Swollman * This software is provided ``as is'', and comes with no warranties 103016Swollman * of any kind. I shall in no event be liable for anything that happens 113016Swollman * to anyone/anything when using this software. 123016Swollman */ 133016Swollman 1492986Sobrien#include <sys/cdefs.h> 1592986Sobrien__FBSDID("$FreeBSD$"); 1692986Sobrien 173016Swollman#include "rand48.h" 183016Swollman 193016Swollmanlong 203016Swollmanjrand48(unsigned short xseed[3]) 213016Swollman{ 223016Swollman _dorand48(xseed); 233016Swollman return ((long) xseed[2] << 16) + (long) xseed[1]; 243016Swollman} 25