| Summary: | jot(1) broken on alpha | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Paul Herman <pherman> | ||||
| Component: | alpha | Assignee: | freebsd-alpha (Nobody) <alpha> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 4.3-RELEASE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
State Changed From-To: open->closed I just fixed this in current using the submitted patch. |
jot -r is broken on alpha, and most likely other 64-bit platforms. This is becuase jot assumes that arc4random() outputs a long rather than int. Fix: Manpage for arc4random() specifies a u_int32 as output, and NOT a u_long. Patch against 4.4-RELEASE: How-To-Repeat: 12:14:43{{ttyq6}pherman@tick}/usr/src/usr.bin/jot//> jot -r 5 1 1 1 1 1