From owner-svn-src-all@freebsd.org Fri May 20 19:31:08 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E0AF8B447DB for ; Fri, 20 May 2016 19:31:08 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: from mail-yw0-x234.google.com (mail-yw0-x234.google.com [IPv6:2607:f8b0:4002:c05::234]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A2F3616C7 for ; Fri, 20 May 2016 19:31:08 +0000 (UTC) (envelope-from ed@nuxi.nl) Received: by mail-yw0-x234.google.com with SMTP id x189so118776298ywe.3 for ; Fri, 20 May 2016 12:31:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nuxi-nl.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=MBsXAluEfuGBn8n/sFlUkf4J4Dy4gvPefLefpS6DF8o=; b=zpL7UE7X8SWfeXTxYtqdDZKjDBK91mu3uieW/5fMq8+QO6IZlJWUMolkW+G2H8Tnwt nBOGHibydJNIHjwkcsqwXJsDj0TBJ1la2SE3wZtzzit9XlJw/k537eV+e6/hgqnIA3Qs CmkSl18Hwx30ptC6VRNenpd+bZpkHVPGn9dnpBIMKqIKPjdUWpU5HAHtvIdwA5r+OW0r WlcftE9HxnjrBDIC83lWeXfqt4d0DbYJIVYSH2Ixl5WSLXQQiHq+Vx2TI5PhgwjR7qH5 i1AJWvsgA/2L2Vw99JXjyjIahdQ+bhq+ahH7zkhXqPcOcJbTVsbEctK/llrXp7uelofo 6CcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=MBsXAluEfuGBn8n/sFlUkf4J4Dy4gvPefLefpS6DF8o=; b=kE4oHjqVaUvU909XlP257kBllvVsK/LF+MxUVtwfzS0iAkmAaLAoDmq/bYMev2udni NiC6v8swCUD7L+ZK9KvgoBGUmLjR8V+6ozIa1VBbSnurXwL5NyXjzYiqgI+1SZBUTFoE eU6k+tVspd76f+zlSfCokIdUrZTdcnKS7vuhAosHj0Mm8xa168UtO9k7pw8edtsK/iqY cGiYCMq79Mn/n1MiBH/yEpnT6IDOvZYEEB40K+Xz8Hxb1GsFKta/5StjZvuFl3xt4B0i LILh0v30B4xoa7oSO2DgiD06BGZUnG8CEOsqQqSiJlWSvMtQPWLLW4IOxsN1tQ60t1ft eVAg== X-Gm-Message-State: AOPr4FV5e5S3xU9b2GX2+O6zh+vLA00dD+ltWPqzNhekWDCWIK4mXjL7kuID8vQxFL+exGOJDFC6PDYTx3KnRw== MIME-Version: 1.0 X-Received: by 10.13.198.5 with SMTP id i5mr3226929ywd.263.1463772667738; Fri, 20 May 2016 12:31:07 -0700 (PDT) Received: by 10.13.201.199 with HTTP; Fri, 20 May 2016 12:31:07 -0700 (PDT) In-Reply-To: <201605201910.u4KJAT13015624@repo.freebsd.org> References: <201605201910.u4KJAT13015624@repo.freebsd.org> Date: Fri, 20 May 2016 21:31:07 +0200 Message-ID: Subject: Re: svn commit: r300322 - head/bin/ed From: Ed Schouten To: "Pedro F. Giffuni" Cc: src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 May 2016 19:31:09 -0000 2016-05-20 21:10 GMT+02:00 Pedro F. Giffuni : > /* initialize the padding vector */ > for (i = 0; i < 8; i++) > - pvec[i] = (char) (arc4random() % 256); > + pvec[i] = (char)arc4random_uniform(256); This could be simplified to just calling arc4random_buf() on pvec, right? -- Ed Schouten Nuxi, 's-Hertogenbosch, the Netherlands KvK-nr.: 62051717