Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/numbers.c
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ bf_random(Var arglist, Byte next, void *vdata, Objid progr)

int mels_random()
{
extern FILE *Dev_Random;
FILE *Dev_Random;
int result;
char buf[5];
/* read 4 bytes from /dev/urandom */
Expand Down
2 changes: 1 addition & 1 deletion src/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ main_loop(void)
/* Open /dev/urandom and keep it open as long as the server is running
so that our random() has a source of random bits. Dev_Random is
defined globally in server.h */
extern FILE *Dev_Random;
FILE *Dev_Random;
Dev_Random = fopen("/dev/urandom", "r");
if (Dev_Random == NULL) panic("Couldn't open /dev/urandom");

Expand Down
2 changes: 1 addition & 1 deletion src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ extern void boot_player(Objid player);
extern void write_active_connections(void);
extern int read_active_connections(void);

FILE *Dev_Random; /* Global file pointer for /dev/random */
extern FILE *Dev_Random; /* Global file pointer for /dev/random */

#endif /* Server_H */

Expand Down