From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 281F41381FA for ; Fri, 6 Jun 2014 02:56:29 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A3A9AE0A72; Fri, 6 Jun 2014 02:56:23 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.18]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 708E8E08D0 for ; Fri, 6 Jun 2014 02:56:22 +0000 (UTC) Received: from gmx.net ([84.133.144.34]) by mail.gmx.com (mrgmx102) with ESMTPSA (Nemesis) id 0MTeVY-1XJB921YOG-00QX7T for ; Fri, 06 Jun 2014 04:56:20 +0200 Received: by gmx.net (nbSMTP-1.00) for uid 1001 (using TLSv1/SSLv3 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) meino.cramer@gmx.de; Fri, 6 Jun 2014 04:56:20 +0200 (CEST) Date: Fri, 6 Jun 2014 04:56:19 +0200 From: meino.cramer@gmx.de To: Gentoo Subject: [gentoo-user] OT: Mapping random numbers (PRNG) Message-ID: <20140606025619.GB3837@solfire> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: mutt-ng/devel-r804 (Linux) X-Provags-ID: V03:K0:JrdUqZgdmNqYCM3zFnWgXWOEI0PcIrzleV+MC7xJO6hQlHxwRgq I4YqnqxcHfWJzFxES5Gav9sGgVQAoZpmJhyNayvZQ6p2z0x/UPRiLdX5DMOy7z5lsQuon0e 0x8slRwPQnplhngHsf453B/u8q3PgrPCoB0Npk8b9HYJqzF/wCR49vX7XQB3+v4A9JjV/eZ 7kQ5kZH5jGBmMlSS8a/LQ== X-Archives-Salt: 4f2c61f4-7c3e-407d-a699-a5a4fcb43bfe X-Archives-Hash: 5a1687a814daa86c3b99c94cdb491756 Hi, I am experimenting with the C code of the ISAAC pseudo random number generator (http://burtleburtle.net/bob/rand/isaacafa.html). Currently the implementation creates (on my embedded linux) 32 bit hexadecimal output. >From this I want to create random numbers in the range of [a-Za-z0-9] *without violating randomness* and (if possible) without throwing away bits of the output. How can I do this mathemtically (in concern of the quality of output) correct? Thank you very much in advance for any help! Best regards, mcc