use a default step size of +1 or -1. Fixes the last two failing
regression tests dhhd and dhhd2. Adapted from FreeBSD.
'good direction' deraadt
-/* $OpenBSD: jot.c,v 1.30 2016/08/05 13:33:21 tb Exp $ */
+/* $OpenBSD: jot.c,v 1.31 2016/08/05 13:43:38 tb Exp $ */
/* $NetBSD: jot.c,v 1.3 1994/12/02 20:29:43 pk Exp $ */
/*-
mask = 015;
break;
case 006:
- reps = REPS_DEF;
- mask = 016;
- break;
+ s = ender > begin ? 1 : -1;
+ mask = 007;
+ /* FALLTHROUGH */
case 007:
if (randomize) {
reps = REPS_DEF;