about summary refs log tree commit diff
path: root/mgenmid.c
Commit message (Collapse)AuthorAgeFilesLines
* mgenmid: fix pledge, needs dnsLeah Neukirchen2020-09-071-1/+1
| | | | Found by lhynes.
* pledge(2) all programsTim Kuijsten2020-09-061-0/+3
| | | | | | | | | | | | | | | | All programs except mshow have a very tight set of promises. mshow has a broad set of promises and might be a good future candidate to further restrict using unveil(2). This patch is based on commit 0300a112 by Alex Holst (dated 2017-12-07), which was proposed in GH PR #79. * pledged mpick, mflow and mdate so that now all programs are pledged * removed some unneeded promises and added some missing promises * move err.h include and OpenBSD ifdef into a new xpledge.h * cleaned up code aligning and whitespace Closes: #179 [via git-merge-pr]
* mgenmid: do not use raw timestampLeah Neukirchen2018-12-251-8/+13
| | | | | | We one-time-pad the timestamp with a random key instead. This will provide enough entropy to be unique, but not leak the system date. Even with a bad RNG state it should guarantee uniqueness, however.
* use appropriate integer typesLeah Neukirchen2017-10-061-1/+1
| | | | Mainly found with clang -Wconversion -Wshorten-64-to-32.
* styleLeah Neukirchen2017-08-311-3/+3
|
* mgenmid: printb36: fix off-by-oneLeah Neukirchen2017-08-211-1/+2
| | | | Closes #73.
* mgenmid: fix fallback random generation on 32bitleovilok2017-04-221-1/+1
| | | | | | lrand48 returns a long int, which is 32bits wide on 32bits systems Closes: #28 [via git-merge-pr]
* mgenmid: use gettimeofday instead of clock_gettimeLeah Neukirchen2017-03-261-4/+5
| | | | | | | | | | Fixes #17. Nanosecond precision wasn't needed, and many legacy operating systems don't support this POSIX.1-2001 function. We now use plain microseconds for the timestamp, which uses the range of the 64-bit number better as well. This will result in a Year 294247 problem.
* clean up whitespaceLeah Neukirchen2017-01-261-6/+6
|
* Add $MBLAZE environment variable to set profile locationIvy Foster2016-09-011-2/+3
| | | | | As a side benefit, all callers of blaze822_home_file need only pass the filename, so the base directory is set in only one place.
* rename .santoku to .mblazeChristian Neukirchen2016-08-011-2/+2
|
* add mgenmidChristian Neukirchen2016-08-011-0/+115