From nobody Mon Jan 17 18:06:17 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id B8FF7196EE80 for ; Mon, 17 Jan 2022 18:06:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Jd0G13K1Mz4lTB for ; Mon, 17 Jan 2022 18:06:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4F4671290E for ; Mon, 17 Jan 2022 18:06:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 20HI6HL4003067 for ; Mon, 17 Jan 2022 18:06:17 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 20HI6HDc003066 for bugs@FreeBSD.org; Mon, 17 Jan 2022 18:06:17 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 260709] arc4random() non-randomness Date: Mon, 17 Jan 2022 18:06:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: wbe@psr.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1642442777; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LJfLdpTEa8ackK6MxqdHNA9c2V7oMndZOn2k8J8w9bc=; b=w25aO0IPpnltnLB3lpc+g6lvgD9mwcITg795+ujQNGgP7axD7E/FNbUWwDRJUDLycBSVFm ck+iRvqovLZ9HaR+p517QBtr4cmwdwHuCfe7f2Ikd/vszB/+tO8OYiGkoWAnzeFvKBQh5f 2xdUogAKnUCT0qSDRXJnMTRzKK/WqJYU58kF/3Lyo6Ns7dmJkksNNyZp8tju78AK2q/z0o 7e4bHnLqVw20d48A1K1UiwDBJcvYHyWAbHksvymTqBQuilnYa+jXtk3YwYBXqaaxjwfika o0bK/CfdEjn1ma5xvZsK/IX38gDx8XVSTidoEXhj63VZazo5IOhjop01bIIw6A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1642442777; a=rsa-sha256; cv=none; b=Vyc1qtAQikMK0iwuNGoybgPymieYQakp2tciae+kgK8Y9o5pxu8cISeT4Ziup6j10wGCl3 lPjCtm7Qbs4eypo90HnfaCk1XD6l1hQAnPhOw5rWWyGtkhDeU/HjKEzTwvU1TU5X1X4M1T s6ldFmoQoa1GlxvnqoI5Sfin69BW0FEEPT7Xn5/2U2fv6Qj4N8XFASybHPjRDpqVehAw3u foY/WxOwqNsQGy1jFZfzFLB2YQqBTB+f+m+p8Bz4g/pZxgqWnchZ23mAQnnJE1tNz3xFnE O5FJaOnpNDZW0lwPMSyHSJulShOM5rZ0FQ4pIMZk0KhQg9L9PmLelMzf6z3saw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D260709 --- Comment #2 from wbe@psr.com --- I generally agree that running 'jot -r 1 0 3600' several times in a row at a console probably does produce a good result. However, in the particular ca= se I described, it observably doesn't. 'jot -r 1 0 3600' (after shell variable substitution) is the controlling co= de for the sleep time. The sleep times are very much NOT random. Here are the results for the 17 days of January so far: Jan 4 03:02:22 Jan 7 03:02:22 Jan 8 03:02:22 Jan 10 03:02:22 Jan 11 03:02:22 Jan 14 03:02:22 Jan 16 03:02:22 Jan 1 03:02:23 Jan 3 03:02:23 ____ 9 Jan 17 03:02:55 Jan 13 03:03:13 ____ 11 Jan 15 03:15:04 Jan 5 03:19:25 Jan 6 03:26:10 Jan 12 03:52:37 Jan 9 03:57:22 Jan 2 04:02:11 ____ 17 That's 9 out of 17 times getting a result of 0 or 1 out of the range of 0-3= 600, and 11 out of 17 in the range 0-51. 52-3600 only happened 6 out of 17 time= s. --=20 You are receiving this mail because: You are the assignee for the bug.=