lkml.org 
[lkml]   [1999]   [Jun]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: How can Emacs get a unique ID per Linux reboot?
On Tue, Jun 01, 1999 at 05:29:07PM +0200, Andi Kleen wrote:
> In muc.lists.linux-kernel, you wrote:
> On RedHat systems you could read /var/run/random-seed, the saved state from
> /dev/random on last reboot (with a sanity check that its mtime is <= /proc/uptime).
> It should be pretty unlikely that there are collisions because it is 512 bytes of
> random data. I don't know if other distributions have a similar mechanism.

Debian has it too, but:
-rw------- 1 root root 512 May 12 04:10 /var/run/random-seed
so you can only read it if you're root.

--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.136 / U:1.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site