Journal the PRNG seed
This commit is contained in:
parent
e1b3a8239c
commit
3de358e451
3 changed files with 9 additions and 0 deletions
|
@ -39,6 +39,7 @@ void journal_shutdown(void);
|
|||
int journal_reopen(void);
|
||||
void journal_login(void);
|
||||
void journal_logout(void);
|
||||
void journal_prng(unsigned);
|
||||
void journal_input(char *);
|
||||
void journal_update(int);
|
||||
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
*
|
||||
* startup
|
||||
* shutdown
|
||||
* prng NAME SEED
|
||||
* login CNUM HOSTADDR USER
|
||||
* logout CNUM
|
||||
* input INPUT
|
||||
|
@ -143,6 +144,12 @@ journal_reopen(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
journal_prng(unsigned seed)
|
||||
{
|
||||
journal_entry("prng BSD %d", seed);
|
||||
}
|
||||
|
||||
void
|
||||
journal_login(void)
|
||||
{
|
||||
|
|
|
@ -263,6 +263,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
#endif /* !_WIN32 */
|
||||
start_server(flags);
|
||||
journal_prng(seed);
|
||||
|
||||
for (;;) {
|
||||
sig = empth_wait_for_signal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue