/* --- Copyright University of Sussex 1996. All rights reserved. ----------
 * File:			C.win32/extern/src/crt.c
 * Purpose:			Things missing from the NuTCRACKER CRT library
 * Author:			Robert Duncan, May 31 1996
 */

#include <stdlib.h>

double copysign(double x, double y) {
	extern _copysign(double, double);
	return _copysign(x, y);
}

double drand48() {
	return (double)rand()/((double)RAND_MAX)+1;
}

void srand48(long seed) {
	srand((unsigned)seed);
}
