[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1011284: popularity-contest: d/postinst: remove bash dependency, fix shellcheck



On Thu, May 19, 2022 at 05:05:43PM +0200, наб wrote:
> Source: popularity-contest
> Version: 1.74
> Severity: wishlist
> Tags: patch
> 
> Dear Maintainer,
> 
> d/postinst hard-depends on bash to generate random days/hours/minutes;
> however,
>   od -d -An -N2 /dev/urandom
> is equivalent to
>   bash -c 'echo $RANDOM'
> ‒ patch 1 replaces the latter with the former;
> od is part of coreutils, and -d is a legacy switch so it's available on
> all implementations (and we already use it as a fallback for hostid
> generation).

Hello нaб,

There should be a provision to work on systems when /dev/urandom is not 
available, as there is for MY_HOSTID.

Cheers,
-- 
Bill. <ballombe@debian.org>

Imagine a large red swirl here. 


Reply to: