Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
/dev/random
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Other operating systems== {{nowrap|{{mono|/dev/random}}}} and {{nowrap|{{mono|/dev/urandom}}}} are also available on Solaris,<ref>{{cite web | url=https://blogs.oracle.com/solaris/post/solaris-random-number-generation | title=Solaris Random Number Generation | first=Darren | last=Moffat | work=Oracle Solaris Blog | date=2013-09-12 | access-date=2022-04-30 }}</ref> NetBSD,<ref>{{man|4|rnd|NetBSD}}</ref> Tru64 UNIX 5.1B,<ref>{{cite web | url=http://h30097.www3.hp.com/docs/base_doc/DOCUMENTATION/V51B_HTML/MAN/MAN4/0199____.HTM | title=random(4) | date=1999-09-19 | access-date=2013-07-03}}</ref> AIX 5.2<ref>{{cite web |url = http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/random.htm |title = random and urandom Devices |work = pSeries and AIX Information Center |date = 2010-03-15 |access-date = 2013-07-03 |archive-url = https://web.archive.org/web/20210303075907/http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=%2Fcom.ibm.aix.files%2Fdoc%2Faixfiles%2Frandom.htm |archive-date = 2021-03-03 |url-status = dead }}</ref> and HP-UX 11i v2.<ref>{{cite web | url=http://software.hp.com/portal/swdepot/displayProductInfo.do?productNumber=KRNG11I | title=HP-UX Strong Random Number Generator | date=2004-07-23 | access-date=2013-07-03}}</ref> As with FreeBSD, AIX implements its own Yarrow-based design, however AIX uses considerably fewer entropy sources than the standard {{nowrap|{{mono|/dev/random}}}} implementation and stops refilling the pool when it thinks it contains enough entropy.<ref>{{cite web | url=http://lists.gnupg.org/pipermail/gnupg-devel/2003-April/019954.html | title=AIX 5.2 /dev/random and /dev/urandom devices | first=Iain | last=Roberts | date=2003-04-25 | publisher=Lists.gnupg.org | access-date=2013-07-03 | archive-url=https://web.archive.org/web/20120222144110/http://lists.gnupg.org/pipermail/gnupg-devel/2003-April/019954.html | archive-date=2012-02-22 | url-status=live}}</ref> In [[Windows NT]], similar functionality is delivered by {{nowrap|{{mono|ksecdd.sys}}}}, but reading the special file {{nowrap|{{mono|\Device\KsecDD}}}} does not work as in UNIX. The documented methods to generate cryptographically random bytes are [[CryptGenRandom]] and [[RtlGenRandom]]. Windows [[PowerShell]] provides access to a cryptographically secure pseudorandom number generator via the {{mono|Get-SecureRandom}} cmdlet.<ref>{{Cite web |last= |title=Get-SecureRandom (Microsoft.PowerShell.Utility) - PowerShell |url=https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/get-securerandom?view=powershell-7.4 |access-date=2024-06-16 |website=learn.microsoft.com |language=en-us}}</ref> [[Cygwin]] on Windows provides implementations of both {{nowrap|{{mono|/dev/random}}}} and {{nowrap|{{mono|/dev/urandom}}}}, which can be used in scripts and programs.<ref>{{Cite web|url=https://www.linuxquestions.org/questions/general-10/how-does-cygwin's-dev-random-and-urandom-work-903054/#post4493834|title=How does Cygwin's /dev/random and urandom work?|website=www.linuxquestions.org|language=en|access-date=2018-03-09}}</ref>
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)