mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-01 08:07:10 -04:00
d5493ec172
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6227 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
16 lines
261 B
C
16 lines
261 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
/* seed rand using urandom */
|
|
float sgran_()
|
|
{
|
|
unsigned int seed;
|
|
FILE *urandom;
|
|
urandom = fopen ("/dev/urandom","r");
|
|
fread (&seed, sizeof (seed), 1, urandom);
|
|
srand (seed);
|
|
|
|
return(0);
|
|
}
|