When fuzzing, use the number of moves as a proxy for the hour.
Every 1000 moves simulates one hour.
This commit is contained in:
@@ -1129,7 +1129,8 @@ friday_13th()
|
||||
int
|
||||
night()
|
||||
{
|
||||
register int hour = getlt()->tm_hour;
|
||||
register int hour = (iflags.debug_fuzzer ? (moves / 1000) % 24 :
|
||||
getlt()->tm_hour);
|
||||
|
||||
return (hour < 6 || hour > 21);
|
||||
}
|
||||
@@ -1137,7 +1138,10 @@ night()
|
||||
int
|
||||
midnight()
|
||||
{
|
||||
return (getlt()->tm_hour == 0);
|
||||
register int hour = (iflags.debug_fuzzer ? (moves / 1000) % 24 :
|
||||
getlt()->tm_hour);
|
||||
|
||||
return (hour == 0);
|
||||
}
|
||||
|
||||
/* strbuf_init() initializes strbuf state for use */
|
||||
|
||||
Reference in New Issue
Block a user