Benjamin Summers
4116879b9e
Meson tries to hard to be "smart". Replaced with a Makefile.
2019-02-01 16:10:43 -08:00
Joe Bryan
fe9f8a8aad
Merge pull request #3 from mrdomino/master
...
Latest upstream + abliss's fix
2019-01-18 12:33:54 -05:00
Jōshin
659aaed38c
Clarify README comment
2019-01-18 08:47:42 -08:00
Jōshin
d95464622e
Version bump, remove double negative
...
I almost would rather say syscall(...) == 0 ? 0 : 1, but decided not to.
2019-01-18 08:35:57 -08:00
Steven Dee
91d5fff630
Merge pull request #2 from abliss/getrandom
...
Actually try calling getrandom while configuring
2019-01-18 08:15:14 -08:00
Adam Bliss
bc607bdfa0
Actually try calling getrandom while configuring
2019-01-17 23:12:58 -05:00
Jōshin
950b19cad8
v0.2.0
...
- ent_install option to install locally (defaults to false.)
- Add pkg-config info if we're installing (hence the minor version
bump.)
- Remove ENT_IMPL, making the preprocessor logic in ent.c more
foolproof.
- Change meson.build style around a bit.
2019-01-17 15:48:49 -08:00
Joe Bryan
6dddf328f1
Merge pull request #2 from mrdomino/master
...
Add all config vars to config.h.in
2019-01-16 21:08:34 -05:00
Jōshin
76251f6b4c
v0.1.4
2019-01-16 17:28:53 -08:00
Jōshin
3e1ccc3b10
Add all config vars to config.h.in
2019-01-16 17:23:10 -08:00
ixv
4f7dc3321c
Merge pull request #1 from urbit/bs/old-meson
...
Support Meson 29.
2019-01-16 15:30:53 -08:00
Benjamin Summers
1d325649b9
Wrote a config.h.in file for old meson versions.
2019-01-16 15:23:46 -08:00
Jōshin
7506fb3157
Minor cleanup
2019-01-16 09:00:29 -08:00
Jōshin
1f0e431259
Remove assert, add _ent_fail
2019-01-02 16:03:20 -08:00
Jōshin
8ce0600e00
Simplify by using stdio
...
Their read loop is probably better anyway. This also sets CLOEXEC on the
opened file, since who knows.
We can do this in the getrandom case since on small reads (len <= 256),
getrandom doesn't fail with EINTR.
2019-01-02 14:37:56 -08:00
Steven Dee
95ebac8093
Update README.md
2019-01-02 12:57:37 -08:00
Jōshin
4b5e644e8f
Special case OpenBSD
2019-01-02 10:17:14 -08:00
Jōshin
ce933a6c5c
Simplify
...
- The header is now less brittle, and is the same thing everywhere.
- Lots of stuff is cleaned up and simpler.
- Changed copyright year.
2019-01-02 10:07:03 -08:00
Jōshin
2471e6a491
s/__NR/SYS/
2018-12-31 11:38:03 -08:00
Jōshin
9a1c8d30fb
Remove _
2018-12-31 11:11:07 -08:00
Jōshin
441da97aef
Remove ifdefs
2018-12-31 11:08:53 -08:00
Jōshin
38e15a688e
Fix typo
2018-12-31 18:02:21 +00:00
Jōshin
d79967ef39
Cleanup
2018-12-31 09:40:38 -08:00
Jōshin
12ac12a795
Fix build with getentropy
2018-12-31 09:21:50 -08:00
Jōshin
b557d1c50c
Use getrandom
2018-12-31 17:19:28 +00:00
Jōshin
6e42521ee8
Exit on failure in sample
2018-12-27 18:43:23 -08:00
Jōshin
9605372b94
Succeed on 0-length calls
2018-12-27 18:38:54 -08:00
Jōshin
67f6fa28aa
Don't install headers
2018-12-27 16:50:27 -08:00
Jōshin
758adeccaa
pragma once
2018-12-27 16:42:28 -08:00
Jōshin
f8b9b2fc38
Prefer sysrandom in meson.build
2018-12-27 16:32:30 -08:00
Jōshin
3152f00a8d
License header in public include
2018-12-27 16:32:15 -08:00
Jōshin
ae716220e2
Remove pkg_mod stuff
2018-12-27 12:31:36 -08:00
Jōshin
6d2e6b168f
Rejigger the meson file
2018-12-27 12:27:02 -08:00
Jōshin
4cbc082504
Expand README
2018-12-27 12:20:51 -08:00
Jōshin
97b072ef6d
warn about urandom
2018-12-27 20:06:45 +00:00
Jōshin
ff8fa84e28
Remove pedantic arg
2018-12-27 11:55:40 -08:00
Jōshin
59102acc59
Rename dep
2018-12-27 11:53:34 -08:00
Jōshin
38cf11ed34
Cleanup, MIT license
2018-12-27 11:43:48 -08:00
Jōshin
4d89cad020
Add a sample program
2018-12-27 19:19:59 +00:00
Jōshin
16451c769c
Fix on Linux
2018-12-27 19:13:51 +00:00
Jōshin
30390fa180
More robust read loop
2018-12-27 11:07:48 -08:00
Jōshin
f1b44b42a9
Get it working
2018-12-27 10:56:10 -08:00
Jōshin
8ef34bea65
blargh fighting with meson
2018-12-27 10:27:28 -08:00
Jōshin
7a7e7b30f8
Simpler implementation
2018-12-26 22:06:40 -08:00
Jōshin
a9f39225c5
Fix build on OS X
2018-12-25 19:49:36 -08:00
Jōshin
aa7e4cce8e
Initial
2018-12-25 19:44:59 -08:00