Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news.netfront.net!gonzo.reversiblemaps.ath.cx!not-for-mail From: Jasen Betts Newsgroups: comp.os.linux.development.apps Subject: Re: /usr/local/bin/rand equivalent in linux Supersedes: Date: 20 Jun 2014 12:49:16 GMT Organization: JJ's own news server Lines: 27 Message-ID: References: <7f1ed141-ce31-44f5-9f2f-48a21b4d11c7@googlegroups.com> NNTP-Posting-Host: 118.90.38.108 X-Trace: adenine.netfront.net 1403269209 23648 118.90.38.108 (20 Jun 2014 13:00:09 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Fri, 20 Jun 2014 13:00:09 +0000 (UTC) X-Face: ?)Aw4rXwN5u0~$nqKj`xPz>xHCwgi^q+^?Ri*+R(&uv2=E1Q0Zk(>h!~o2ID@6{uf8s;a +M[5[U[QT7xFN%^gR"=tuJw%TXXR'Fp~W;(T"1(739R%m0Yyyv*gkGoPA.$b,D.w:z+<'"=-lVT?6 {T?=R^:W5g|E2#EhjKCa+nt":4b}dU7GYB*HBxn&Td$@f%.kl^:7X8rQWd[NTc"P"u6nkisze/Q;8 "9Z{peQF,w)7UjV$c|RO/mQW/NMgWfr5*$-Z%u46"/00mx-,\R'fLPe.)^ User-Agent: slrn/pre1.0.0-18 (Linux) Xref: csiph.com comp.os.linux.development.apps:742 On 2014-06-19, chaudhary.nabin@gmail.com wrote: > can anyone tell what is the equivalent for /usr/local/bin/rand in linux? It's hard to give a good answer without knowing what "/usr/local/bin/rand" actually is. However, I can give a bad answer that's most probably correct. Since /usr/local is where stuff that's compiled from source and then installled ends up, the correct answer is probably "/usr/local/bin/rand", but only if you have the source and can port it. you wany want to investigate kernel device: /dev/urandom (man 4 urandom) bash built-in: $RANDOM (man 1 bash) and /usr/games/rolldice (from the "rolldice" package - man 6 rolldice) -- umop apisdn --- news://freenews.netfront.net/ - complaints: news@netfront.net ---