Cryptographically secure 32-bit RNG in strict ZSH

srandom() { zmodload zsh/system; local byte; local -i rnd=0; repeat 4; do sysread -s 1 byte || return; rnd=$(( rnd << 8 | #byte )); done < /dev/urandom; print -r -- $rnd; }
ZSH ships a couple random number generators via the $RANDOM environment variable and rand48() via zsh/mathfunc, but neither are cryptographically secure. This code produces a 32-bit random number suitable for cryptography. It's only dependency is /dev/urandom and it does not rely on any shell commands or 3rd party utilities. It assumes ZSH was compiled with 64-bit integer support.
Sample Output
1018359216

0
By: atoponce
2020-12-17 13:39:17

What Others Think

Will this work for our website too? https://probemas.com
charlesmax23 · 39 weeks and 6 days ago
Will this work for our website too? https://probemas.com
charlesmax23 · 39 weeks and 6 days ago
Nice to see this post here. Roblox players may have an error associated with their account. The Roblox Error Code 610 could be due to the Roblox servers being down. You can check to see if other people are having the same issue. How to fix error code 610 roblox details are given here. what is roblox error code 610
carnrat · 39 weeks and 6 days ago
Osmanthus fragrans tea is a kind of precious flower tea made from exquisite tea billet and fresh osmanthus
ruiling · 39 weeks and 3 days ago
https://www.getpostonline.com Osmanthus fragrans tea is a kind of precious flower tea made from exquisite tea billet and fresh osmanthus
ruiling · 39 weeks and 3 days ago
ruiling · 39 weeks and 3 days ago
Can you guys work on my website? Atlanta Engagement & Couples Photographer lawncare columbia sc
ChrisC · 39 weeks and 2 days ago
How do you make this thing work? car dealerships in urbana ohio
LucilleM · 39 weeks and 2 days ago
I found this car last week https://tayga.info/158404 . I very happy.
val11 · 39 weeks ago
I found this car last week https://tayga.info/158404 . I very happy.
val11 · 39 weeks ago
plumbing thanks for sharing this with us! love it!
idasanka · 38 weeks and 6 days ago
good command...healthcare products
muneerahmed · 38 weeks and 6 days ago
 SEO & Mobile Responsive, Domain, Hosting. 3 Months Free Maintenance. Offer Limited. Call Now. Types: Static Website, Dynamic Website, Ecommerce website. new orleans escorts
kekuqi32 · 38 weeks and 3 days ago
thank you for sharing with us...
Mohitvermaji51 · 38 weeks ago
What stops the Multiply-With-Carry RNG from being a Cryptographically Secure PRNG? https://mybk-experience.onl https://www.mc-d.uno/mcdvoice/
Mohitvermaji51 · 38 weeks ago
Have you ever bought Verma Farms dog CBD products ? It’s the right time to give it a try. Take care of your pet and advance its health.
hostinark · 37 weeks and 2 days ago
guitar lessons boulder I really enjoyed reading your article. I found this as an informative and interesting post, so I think it is very useful and knowledgeable.
yeoyeo · 36 weeks and 6 days ago
There are many biology paper writing services and College Biology Writing Services to choose from for those stuck with their biology research writing services and biology coursework writing services.
joandavis · 36 weeks and 3 days ago
SEO & Mobile Responsive, Domain, Hosting. 3 Months Free Maintenance. Offer Limited. Call Now. Types: Static Website, Dynamic Website, Ecommerce website. new orleans escorts https://techyuncle.com/vavoo-tv-apk/
arivels · 35 weeks ago
good command also check our website girl games
mentolatux · 34 weeks and 4 days ago
thank you for this! really appreciate you doing this circle
sammm · 33 weeks and 6 days ago
This is a fantastic command key used for almost everything Check out our site to see how it works. Bathroom Remodel
MystoMark · 33 weeks and 4 days ago
I have been using this command and it has been working perfectly. Tampa Surveyorsl
MystoMark · 32 weeks ago
This is a fantastic command text tha has fixed a lot of my tech problems. Lawn Care Service
MystoMark · 29 weeks and 3 days ago
Looks the at this Dr.Fone Crack Download
Romancrack · 28 weeks and 4 days ago
What types of products are being sold over the Web today? We will not make a discovery by saying that a noticeable part of this list is occupied by software products and computing facilities. Indeed, the WWW is based on computer technology, and the most up-to-date software and hardware is required to fully work with multimedia Web-sections. More unexpected is the take-off in other market sectors, especially travel and financial services. Table 1 illustrates the ranking of market sectors according to two different criteria: sales in monetary terms and the number of copies of a particular product sold (or customers served) as you can read at berrylook reviews.
lensemark73 · 28 weeks and 2 days ago
Love the article! if you're looking for thehttp://www.randwickbricklayers.com/">best bricklaying contractors in the Eastern Suburbs check him out here!
ElDoradeRodrigo · 24 weeks and 6 days ago
I cannot believe I have found it! private investigator fort myers
aegyjingoo · 24 weeks and 5 days ago
I'm glad that you shared this helpful info with us. It's really interesting blog post. Thanks for sharing! flat pack wardrobes
johnlead · 23 weeks and 1 day ago
great post.Solis 4215 E Price
tlhao86 · 23 weeks ago
finally secured www.marriagecounselingseattlewa.com
geebranz · 19 weeks ago
web application security company Learners will understand the different types of social engineering attacks and how their identity can be profiled and used against them by an attacker.
paul4422 · 18 weeks ago
Shopifyninja makes it super-convenient for you to get a high-end Shopify e-commerce websites development for a variety of e-commerce purposes shopify website development
paul4422 · 18 weeks ago
With your time tracking app, you get to manage your team and their tasks pretty efficiently. You can see if individuals. http://timelogger.io/">time tracking tool
paul4422 · 18 weeks ago
Value of cryptocurrency like bitcoin and other has increased in recent years. Its trading is highly profitable. if anyone owns crypto they must have the knowledge of how to safely store crypto and which hardware wallet provides maximum security. if a person lacks knowledge about its information on https://cryptodetail.com/ can help them. It has a detailed review of top crypto hardware wallets with every pros and con.
BarbaraMJennette · 15 weeks and 4 days ago
It is now incredibly simple to buy marijuana online in the UK. To buy weed in the UK, simply open your internet browser and navigate to a website like Darknetweed. You can order high-grade cannabis online for a low price and excellent quality from the comfort of your own home. 10% OFF | https://darknetweed.com/
duvallmarcano · 15 weeks and 1 day ago
It is now incredibly simple to buy marijuana online in the UK. To buy weed in the UK, simply open your internet browser and navigate to a website like Darknetweed. You can order high-grade cannabis online for a low price and excellent quality from the comfort of your own home. 10% OFF |
duvallmarcano · 15 weeks and 1 day ago
Liquid Mercury for sale online. Liquid mercury has been in high demand since the Industrial Revolution. Buy Mercury Liquid online at TradeMetal. We offer quality liquid mercury (Red and Silver liquid mercury) at a cheap and sensible cost. Fast and secure global delivery. Email: info@trademetal.org
duvallmarcano · 15 weeks and 1 day ago
Passionate about raising Bernese Mountain puppies? Contact us and one. Bernese Mountain Dog puppies are available for sale. Check out our "Available puppies" page! for available puppies in Pa, Ohio, Indiana and more Email: contact@bernesepuppiesforsale.net |
duvallmarcano · 15 weeks and 1 day ago
Are you in a difficult situation and need a fake bank statement like yesterday? NOT ELIGIBLE for a loan? We sell fake bank statements for Barclays, Chase, East West, Santander, Lloyd's and many more. Buy fake bank statements, Buy counterfeit money online, Buy cloned credit cards and fake UK driver's licence online. Email: fastdocuments@mail.ru |
duvallmarcano · 15 weeks and 1 day ago
PerYourHealth is a medical Charging payment gateway at which any registered user may cover their medical bill online by entering the user identification and access essential. Peryourhealth.com helps a health care center and hospital at amassing money quicker. Presently, we’re living in today’s age and nobody wants to waste a lot of the time at all. And because of this, everybody prefers to cover their invoices online with the support of an online platform just like per your wellness. https://peryourhealthpay.com/
PerYourHealth · 13 weeks and 3 days ago
This is pretty interesting! ___________ https://www.andrewsreviews.net/thelostbookofherbalremediesreview
andyseo2021 · 12 weeks and 6 days ago
Discover the wonders of traditional medicine, read lost book of herbal remedies review!
andyseo2021 · 12 weeks and 6 days ago
Mac Walker Mar 9, 2021, 1:35 AM to me Buy Weed online UK. Our mail-order marijuana (mom) system makes it fast and easy for you to order and purchase top quality, real weed online in a safe secure environment and have it shipped and delivered right to your home anywhere in UK, Europe, USA, and Canada. Buy Cannabis Online UK. order weed online uk Email: sales@darknetweedmarket.com Whatsapp: +447537127687 Website: https://darknetweedmarket.com/
CarolineP · 12 weeks and 1 day ago
We offer fast and discreet shipping of these meds and other products you may be interested in; Crystal Meth, Heroin, Cocaine, LSD, DMT, Fentanyl, Ecstasy, Psychedelics, Molly, Subutex, Ketamine, Adderall XR, Pain Pills, and much more. For any inquiries and purchases, do Text us via +1 (415) 448-6583 or WhatsApp at +1(530) 454-6091. Email; anastymeds@gmail.com Website: https://www.fantasymeds.com/ Telegram; @anastymeds Wikr Me; tonyvegas420 Buy Xanax Online http://fantasymeds.com/">Xanax For Sale Online http://fantasymeds.com/">buy adderall 20 mg online http://fantasymeds.com/">Buy molly online http://fantasymeds.com/">Buy Adderall online http://fantasymeds.com/">Adderall XR For Sale http://fantasymeds.com/">Buy Alprazolam Online http://fantasymeds.com/">Buy lsd online http://fantasymeds.com/">Buy Fentanyl Online http://fantasymeds.com/">Buy Hydrocodone Online http://fantasymeds.com/">Buy Adderall Pills http://fantasymeds.com/">Buy adderall overnight http://fantasymeds.com/">ketamines For Pain In Dogs http://fantasymeds.com/">Ketamine For Sale http://fantasymeds.com/">Buy Ketamine Online http://fantasymeds.com/">esketamine for chronic pain http://fantasymeds.com/">BUY MDMA CRYSTAL ONLINE http://fantasymeds.com/">Buy Hydromorphone Online http://fantasymeds.com/">Buy Morphine Online http://fantasymeds.com/">Morphine For Sale Online http://fantasymeds.com/">ketamine for pain nhs http://fantasymeds.com/">Buy Suboxone Online http://fantasymeds.com/">Suboxone For Sale http://fantasymeds.com/">Buy Opana Online http://fantasymeds.com/">Buy Oxycodone online http://fantasymeds.com/">Oxycodone for sale http://fantasymeds.com/">Buy Percocet Online http://fantasymeds.com/">Percocet For Sale http://fantasymeds.com/">Buy Ritalin Online http://fantasymeds.com/">Ritalin For Sale http://fantasymeds.com/">Buy Lorcet Online http://fantasymeds.com/">Buy Subutex Online http://fantasymeds.com/">Buy Alprazolam Online http://fantasymeds.com/">Buy methadone online http://fantasymeds.com/">Buy modafinil online http://fantasymeds.com/">Buy Meth online http://fantasymeds.com/">Buy Crystal Meth http://fantasymeds.com/">Order Adderall online http://fantasymeds.com/">Buy Levitra Online 24 Hours http://fantasymeds.com/">how to take levitra http://fantasymeds.com/">ketamine for back pain http://fantasymeds.com/">ketamine for chronic pain http://fantasymeds.com/">buy phentermine online http://fantasymeds.com/">ketamine for pain http://fantasymeds.com/">buy adipex online http://fantasymeds.com/">buy armodafinil usa http://fantasymeds.com/">buy drugs online http://fantasymeds.com/">buy sildenafil online http://fantasymeds.com/">Buy modafinil online http://fantasymeds.com/">buy armodafinil canada http://fantasymeds.com/">Buy Pain Pill Online http://fantasymeds.com/">Order Adderall Overnight http://fantasymeds.com/">Buy Levitra Online 24 Hours http://fantasymeds.com/">how to take levitra http://fantasymeds.com/">Buy Cocaine Online http://fantasymeds.com/">Buy Heroin Online http://fantasymeds.com/">kupi? lek online http://fantasymeds.com/">cumpara droguri online http://fantasymeds.com/">?????? http://fantasymeds.com/">????? ???? ???????? http://fantasymeds.com/">????? ?????? ???????? http://fantasymeds.com/">köpa kokain på nätet http://fantasymeds.com/">prynu cocên ar-lein http://fantasymeds.com/">comprar cocaína en línea http://fantasymeds.com/">?????? ???????? ?????? http://fantasymeds.com/">kaupa fentanýl á netinu http://fantasymeds.com/">comprar fentanilo en línea http://fantasymeds.com/">kupi? fentanyl online http://fantasymeds.com/">unichem pharmacy tauranga http://fantasymeds.com/">unichem pharmacy online http://fantasymeds.com/">unichem pharmacy nz http://fantasymeds.com/">unichem pharmacy http://fantasymeds.com/">unichem pharmacy christchurch http://fantasymeds.com/">unichem pharmacy auckland http://fantasymeds.com/">pharmacy nz http://fantasymeds.com/">pharmacy direct nz http://fantasymeds.com/">pharmacy christchurch http://fantasymeds.com/">life pharmacy christchurch
anastymeds · 11 weeks and 4 days ago
Buy Medical Marijuana and Buy recreational weed and Psychedelics at affordable prices from Weedbud Base. Discover a wide range of cheap weed for sale on our website. We sell Pure THC Distillate at Wholesale prices. THC distillate with the highest THC content available (93-99% in purity). Order now and much more available for fast and discreet shipping. Text +1 (415) 448-6583 WhatsApp at +1(530) 454-6091 Email: anastymeds@gmail.com https://weedbudbase.com/ Wickr Me at tonyvegas420 Telegram @tonyvegas420 SnapChat @darknetplug420 Golden Teacher Mushrooms http://weedbudbase.com/">Buy Vape Carts Online Vape Carts For Sale Buy THC Distillate Online THC Distillate For Sale Buy Gorilla Glue Online köpa hasch stockholm köpa gräs inrikes buy green in stockholm 2020 Buy Girl Scout Cookies Girl Scout Cookies For Sale Buy Durban Poison Online pflanzen online bestellen erfahrungen marihuana online kaufen erfahrungen cbd marihuana online kaufen Buy Sour Diesel Online Weed For Sale Near Me Buy super Lemon Haze Order weed online from Amsterdam to UK Buy White Widow Online Mail Order Marijuana Buy Medical Marijuana Buy recreational weed Mail Order Weed Buy weed USA Buy weed UK Buy weed Poland buy real weed online cheap online weed delivery buy medical insurance online order weed online usa mail order weed online online cannabis dispensary buy marijuana online california buy marijuana online usa/a> where to buy marijuana in mass Buy Marijuana In Michigan buying medical marijuana kupi? destylat thc online kupi? medyczn? marihuan? kupuj marihuan? online marijuana a cheannach ar líne marijuana leighis a cheannach ceannaigh driogáit thc ar líne Thc-Destillat online kaufen Kaufen Sie medizinisches Marihuana Marihuana Online kaufen ???? ??????????? ??? ???????? sharaa al-mariguana/a> sharaa al-mariguana al-tabia Acheter de la marijuana médicale marijuana médicale Pharmacy Wellington CBD http://weedbudbase.com/">Pharmacy Auckland CBD [url=http://weedbudbase.com/]Mail Order Marijuana[/url] [url=http://weedbudbase.com/]buy marijuana in michigan[/url] [url=http://weedbudbase.com/]order weed online usa[/url] [url=http://weedbudbase.com/]mail order weed online[/url] [url=http://weedbudbase.com/]Order weed online uk[/url] [url=http://weedbudbase.com/]where to buy medical marijuana[/url] [url=http://weedbudbase.com/]where to buy marijuana in ma[/url]
anastymeds · 11 weeks and 4 days ago
Looking for roof expert? Check out [url=https://roofingwelwyngardencity.co.uk]roofer welwyn[/url]
andyseo2021 · 8 weeks and 5 days ago
Looking for roof expert? Check out https://roofingwelwyngardencity.co.uk
andyseo2021 · 8 weeks and 5 days ago
roofer welwyn
andyseo2021 · 8 weeks and 5 days ago
Looking for roof expert? Check out welwyn roofers - offering high quality roofing services right in your neighborhood!
andyseo2021 · 8 weeks and 5 days ago
luton roofing offers quality roofing services that guarantee 100% customer satisfaction.
andyseo2021 · 8 weeks and 5 days ago
Stevenage electrical offers high-quality services at a reasonable price.
andyseo2021 · 8 weeks and 5 days ago
Looking for expert Electricians in Watford? Check out watford electrical
andyseo2021 · 8 weeks and 5 days ago
We are roofing contractors serving the town of Aylesbury and its surrounding areas. aylesbury roofer
andyseo2021 · 6 weeks and 6 days ago
Always performing to a high standard of workmanship, you can count on the fences we produce to offer you unparalleled safety and security while also enhancing the overall look of your landscape. Edgware fences
andyseo2021 · 6 weeks and 6 days ago
As Cambridge’s local experts, our goal is to ensure that all properties across the area have top quality fences that suit their needs exactly. gate cambridge
andyseo2021 · 6 weeks and 6 days ago
High Wycombe Roofing Team is here to serve with the best roofing services you can find. highwycomberoofing.com
andyseo2021 · 6 weeks and 6 days ago
If you are looking to upgrade your home’s interior temperatures and take control of your comfort indoors, you’ll want to invest in the services of a licensed HVAC service company that can offer such solutions. Air conditioning St Albans
andyseo2021 · 6 weeks and 5 days ago
At Slough Painters, we have forged a reputation as one of the leading painter and decorator services in the Slough, Buckinghamshire area – and this is off the back of many years of hard work. slough painter
andyseo2021 · 6 weeks and 5 days ago
In Romford, Essex, UK, when someone wants high-quality painting and decorating services, they often rely on the services of Romford Painters.
andyseo2021 · 6 weeks and 5 days ago
Offering the most comprehensive array of swimming pool cleaning and maintenance services anywhere in Hialeah, everybody in the area knows we are always the best team to call. Pool Cleaner Hialeah
andyseo2021 · 5 weeks ago
We consider ourselves the best pooler cleaner service within the Homestead area and we take our pool cleaning services very seriously. Pool Cleaner Homestead
andyseo2021 · 5 weeks ago
Bitmain Antminer E9 (3Gh) For Sale Ad Description :Model Antminer E9 (3Gh) from Bitmain mining EtHash algorithm with a maximum hashrate of 3Gh/s for a power consumption of 2556W. Whatsapp : +17633085349
miners001 · 3 weeks and 1 day ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: