mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-04 16:31:17 -05:00
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);
|
||
|
}
|