diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 21:11:41 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-02-25 21:11:41 +0100 |
commit | 8a01033efcdc72f8b63b5a7afcc699ca20edfdc0 (patch) | |
tree | adfd852667a975d673c149c7c48197ed455ccd81 /sys/src/cmd/vmx/vmx.c | |
parent | 6728a5ec2351cac7cc27333e0d984c5c2b029b87 (diff) |
vmx: allow setting mac address of using ea:nnnnnnnnnnnn! prefix, use genrandom() to generate mac globally unique mac address
Diffstat (limited to 'sys/src/cmd/vmx/vmx.c')
-rw-r--r-- | sys/src/cmd/vmx/vmx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/src/cmd/vmx/vmx.c b/sys/src/cmd/vmx/vmx.c index aeeeb9676..c4484966e 100644 --- a/sys/src/cmd/vmx/vmx.c +++ b/sys/src/cmd/vmx/vmx.c @@ -87,7 +87,6 @@ vmxsetup(void) rc = read(ctlfd, name, sizeof(name) - 1); if(rc < 0) sysfatal("read: %r"); name[rc] = 0; - srand(atoi(name)); if(segname == nil){ segname = smprint("vm.%s", name); segrclose = ORCLOSE; |