X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=samtools.git;a=blobdiff_plain;f=bam_aux.c;h=4fd3190a73799c6fd68257cc8c1125a017dc4860;hp=fbcd9822b233dab64f6c861fb332846acb951ce7;hb=c34624801b980425af68c3c431423c72b18c14fe;hpb=f2f3968e11eead9ce5601b01890bc2339ff951e9 diff --git a/bam_aux.c b/bam_aux.c index fbcd982..4fd3190 100644 --- a/bam_aux.c +++ b/bam_aux.c @@ -180,3 +180,10 @@ char *bam_aux2Z(const uint8_t *s) if (type == 'Z' || type == 'H') return (char*)s; else return 0; } + +#ifdef _WIN32 +double drand48() +{ + return (double)rand() / RAND_MAX; +} +#endif