summaryrefslogtreecommitdiff
path: root/src/libs6/ftrig1_make.c
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:16:43 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2016-10-14 17:16:43 +0000
commit4a90dd1f9063fd5a91431ee6873c25c5c8229805 (patch)
tree8c15b69aaa7f3c56ad60100463c3769f8f7ae4e4 /src/libs6/ftrig1_make.c
parentb189876a10023325d28bc439b956ff83dbe51845 (diff)
downloads6-4a90dd1f9063fd5a91431ee6873c25c5c8229805.tar.xz
Port to the new librandom API
Diffstat (limited to 'src/libs6/ftrig1_make.c')
-rw-r--r--src/libs6/ftrig1_make.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs6/ftrig1_make.c b/src/libs6/ftrig1_make.c
index 7aedd08..83ffca9 100644
--- a/src/libs6/ftrig1_make.c
+++ b/src/libs6/ftrig1_make.c
@@ -25,7 +25,7 @@ int ftrig1_make (ftrig1_t *f, char const *path)
tmp[pathlen + 2 + FTRIG1_PREFIXLEN] = ':' ;
if (!timestamp(tmp + pathlen + 3 + FTRIG1_PREFIXLEN)) return 0 ;
tmp[pathlen + 28 + FTRIG1_PREFIXLEN] = ':' ;
- if (random_name(tmp + pathlen + 29 + FTRIG1_PREFIXLEN, 16) < 16) return 0 ;
+ random_name(tmp + pathlen + 29 + FTRIG1_PREFIXLEN, 16) ;
tmp[pathlen + 45 + FTRIG1_PREFIXLEN] = 0 ;
{