| delorie.com/archives/browse.cgi | search |
| Newsgroups: | comp.os.msdos.programmer,comp.os.msdos.djgpp |
| Subject: | Re: Uptime and entropy in DOS |
| From: | bmarcum AT iglou DOT com |
| X-Everything: | Net-Tamer V 1.08X |
| NNTP-Posting-Host: | lou-ts7-30.iglou.com |
| X-Original-NNTP-Posting-Host: | lou-ts7-30.iglou.com |
| Message-ID: | <38a49872@news.iglou.com> |
| Date: | 11 Feb 2000 18:17:06 -0500 |
| X-Trace: | 11 Feb 2000 18:17:06 -0500, lou-ts7-30.iglou.com |
| Organization: | IgLou Internet Services, Inc. |
| Lines: | 22 |
| X-Original-NNTP-Posting-Host: | news-incoming.iglou.com |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
On 2000-02-10 REPLYTOd_yerrick AT hotmail DOT comNO2CANNEDHAM said:
>programmer:107203 comp.os.msdos.djgpp:77801 Is it possible to get
>the uptime of a DOS system? I need more entropy than the 32 bits I
>get from time(NULL) to initialize a pseudorandom number generator.
>Is there a predictable way to get at least 64 bits of entropy?
I have an uptime command on my system, I think it was part of FreeDOS.
If you run it in DR-DOS it also shows the number of tasks.
UPTIME v7.02aá Report the amount of time the computer has been running
Free & Open DOS Utility by M DOT Aitchison AT phys DOT canterbury DOT ac DOT nz
USAGE: UPTIME [options]
OPTiONS:
/B Brief /D Day of start only
/L[:fn] List to printer (or filename) /S System uptime (if under dosemu)
/T Time of start only /U:x Units:[Days|Hours|Min|S|Ticks]
ENViRONMENT VARiABLES:
UPTIME Specify default options, e.g. SET UPTIME=/Verbosity=16
CLASS1=Error, CLASS2=Warn, _ANSI=NO, COMPATIBILITY=OpenDOS, LFN=NO
Net-Tamer V 1.08X - Test Drive
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |