search for: random_seed

Displaying 20 results from an estimated 65 matches for "random_seed".

2016 May 26
2
[PATCH] customize: random_seed: avoid one file checking for existing files
When the random-seed file is found, then avoid checking its existance again. --- customize/random_seed.ml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/customize/random_seed.ml b/customize/random_seed.ml index e4c955e..1633aed 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -35,7 +35,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root =...
2015 Jul 24
3
[PATCH] customize: random_seed: add CirrOS location
CirrOS has its random-seed file in /etc. --- customize/random_seed.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/customize/random_seed.ml b/customize/random_seed.ml index 34a7af7..5a15ad9 100644 --- a/customize/random_seed.ml +++ b/customize/random_seed.ml @@ -30,6 +30,7 @@ let rec set_random_seed (g : Guestfs.guestfs) root = "/var/lib/syst...
2016 May 26
0
Re: [PATCH] customize: random_seed: avoid one file checking for existing files
On Thu, May 26, 2016 at 01:45:05PM +0200, Pino Toscano wrote: > When the random-seed file is found, then avoid checking its existance > again. > --- > customize/random_seed.ml | 9 ++++++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --git a/customize/random_seed.ml b/customize/random_seed.ml > index e4c955e..1633aed 100644 > --- a/customize/random_seed.ml > +++ b/customize/random_seed.ml > @@ -35,7 +35,7 @@ let rec set_random_see...
2018 Feb 12
2
[PATCH] inspect: recognize the Kali Linux distribution (RHBZ#1544227)
Read the information from os-release, and make it behave like a Debian distribution (i.e. using dpkg, and apt). --- daemon/inspect_fs.ml | 2 ++ daemon/inspect_fs_unix.ml | 1 + daemon/inspect_types.ml | 2 ++ daemon/inspect_types.mli | 1 + generator/actions_inspection.ml | 4 ++++ 5 files changed, 10 insertions(+) diff --git a/daemon/inspect_fs.ml
1996 Nov 20
0
Bug in initscripts-2.77-1.i386.rpm''s boot-up random # handler.
>From /etc/rc.d/init.d/random in 2.77-1 (and earlier?): ... random_seed=/var/run/random-seed # See how we were called. case "$1" in start) echo "Initializing random number generator..." # Carry a random seed from start-up to start-up # Load and then save 512 bytes, which is the size of the entropy pool if [ -f /etc...
2018 Feb 12
0
[PATCH] customize, sysprep, v2v: handle Kali Linux as Debian
...aths. The only exception is the crypto algorithm for passwords in passwd, which is always assumed as SHA512 (as Kali Linux is relatively new). --- customize/firstboot.ml | 2 +- customize/hostname.ml | 2 +- customize/password.ml | 2 +- customize/random_seed.ml | 2 +- sysprep/sysprep_operation_pacct_log.ml | 2 +- v2v/convert_linux.ml | 4 ++-- v2v/convert_linux.mli | 4 ++-- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/customize/firstboot.ml b/customize/firstboot.ml index a37c872c7..1...
2015 Jul 27
2
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...:: MASTER, rank, i, n integer, allocatable :: seed(:) double precision :: pi_est, homepi, pirecv, pisum ! we set it to zero in the sequential run rank = 0! initialize the random number generator! we make sure the seed is different for each task call random_seed() call random_seed(size = n) allocate(seed(n)) seed = 12 + rank*11 call random_seed(put=seed(1:n)) deallocate(seed) avepi = 0 do i = 0, ROUNDS-1 call dboard(darts, pi_est) ! calculate the average value of pi over all iterations avepi = ((avepi*i) + pi_est)/(i + 1) end do end subroutine pi e...
2004 Mar 17
1
best methods for strings and structures?
...for file i/o and return an object (list?) that contains the elements of the C structure. For example, reading a file that contains: struct CONFIG_RECORD { char coeffs_filename[256]; char species_filename[256]; unsigned long use_random_error; unsigned long random_seed; unsigned long endemic_mortality; unsigned long sdi_mortality; unsigned long file_in_format; unsigned long file_out_format; double fixed_plot_radius; double min_prism_dbh; double baf; unsigned long max_sample_size; unsigned lo...
2014 Jan 10
3
[PATCH 0/3] Timezone and keyboard layout settings in virt-builder and virt-sysprep.
Setting timezone is easy. It turns out to be almost impossible to set keyboard layout in virt-builder sanely, so I have added some examples instead. Coming up next, setting languages in virt-builder (clue: very very very hard). Rich.
2012 Aug 08
1
[PATCH] sysprep: remove the process accounting log files
...@@ -42,8 +42,8 @@ operations = \ abrt_data bash_history blkid_tab ca_certificates cron_spool \ dhcp_client_state dhcp_server_state dovecot_data flag_reconfiguration \ hostname kerberos_data lvm_uuids logfiles machine_id mail_spool \ - net_hwaddr package_manager_cache pam_data puppet_data_log random_seed \ - rhn_systemid samba_db_log script smolt_uuid ssh_hostkeys \ + net_hwaddr pacct_log package_manager_cache pam_data puppet_data_log \ + random_seed rhn_systemid samba_db_log script smolt_uuid ssh_hostkeys \ ssh_userdir sssd_db_log udev_persistent_net user_account \ utmp yum_uuid diff --git a...
2015 Jul 27
0
R package with Fortran module on Windows? undefined reference to `__stack_chk_fail'
...integer, allocatable :: seed(:) > double precision :: pi_est, homepi, pirecv, pisum > ! we set it to zero in the sequential run > rank = 0! initialize the random number generator! we make sure the > seed is different for each task > call random_seed() > call random_seed(size = n) > allocate(seed(n)) > seed = 12 + rank*11 > call random_seed(put=seed(1:n)) > deallocate(seed) > > avepi = 0 > do i = 0, ROUNDS-1 > call dboard(darts, pi_est) > ! calculate the average value of pi over all iterations > avepi = ((...
2014 Feb 12
2
[PATCH 1/2] mllib: hostname: replace the hostname on Debian also in /etc/hosts (RHBZ#953907).
...tions(+), 2 deletions(-) diff --git a/builder/Makefile.am b/builder/Makefile.am index 9d2dbc5..0880e03 100644 --- a/builder/Makefile.am +++ b/builder/Makefile.am @@ -69,10 +69,10 @@ OBJECTS = \ $(top_builddir)/mllib/common_utils.cmx \ $(top_builddir)/mllib/urandom.cmx \ $(top_builddir)/mllib/random_seed.cmx \ + $(top_builddir)/mllib/perl_edit.cmx \ $(top_builddir)/mllib/hostname.cmx \ $(top_builddir)/mllib/timezone.cmx \ $(top_builddir)/mllib/firstboot.cmx \ - $(top_builddir)/mllib/perl_edit.cmx \ $(top_builddir)/mllib/crypt-c.o \ $(top_builddir)/mllib/crypt.cmx \ $(top_builddir)/mllib...
2014 Mar 18
2
[PATCH] customize: Move virt-customize-related code to a separate
There's not going to be an easy way to present this patch. It's huge and interconnected. Anyway, what it does is lay the groundwork for a new tool which I'm calling 'virt-customize'. virt-customize is virt-builder, but without the part where it downloads a template from a respository. Just the part where it customizes the template, that is, installing packages, editing
2008 Jun 13
7
Rubyscript2exe undefined ''run'' method
...ot;random_frame.rb"] def random_process file = @file_path.split("\\") @file_path = file.join("\\\\") @file_path << "\\Random.txt" random_file = File.new(@file_path , "w") i = 0 max = @max_number.to_i b = 10 ** (@number_of_digits.to_i - 1) random_seed = 10 ** (@number_of_digits.to_i) g = 0 g_max =100 @progress_guage.set_value(0) while i < max a = rand(random_seed) if (a > b) then random_file.puts a i = i + 1 while ((i/max) * 100) > (@progress_guage.get_value()) @progress_guage.pulse() sleep(0.08) e...
2014 Nov 03
0
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
...ready. + =head2 INSTALLATION PROCESS When you invoke virt-builder, installation proceeds as follows: diff --git a/customize/Makefile.am b/customize/Makefile.am index 60e2091..56c5ad5 100644 --- a/customize/Makefile.am +++ b/customize/Makefile.am @@ -55,6 +55,8 @@ SOURCES = \ perl_edit.mli \ random_seed.ml \ random_seed.mli \ + ssh_key.ml \ + ssh_key.mli \ timezone.ml \ timezone.mli \ urandom.ml \ @@ -92,6 +94,7 @@ ocaml_modules = \ password \ perl_edit \ random_seed \ + ssh_key \ timezone \ customize_cmdline \ customize_run \ diff --git a/customize/customize_run.ml b/customize...
2004 Jul 22
1
secrets.tbd going corrupt on powerfailure?
...dump secrets.tdb says: { key = "SECRETS/SID/IN28C29E" data = "\01\04\00\00\00\00\00\05\15\00\00\00\D4r\9A\B6Sd\A3N\0A5\D7\DE\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00" } { key = "INFO/random_seed\00" data = "\C9\07\00\00" } The log.smbd says: [2004/07/22 09:17:59, 0] tdb/tdbutil.c:tdb_log(724) ~ tdb(/etc/samba/secrets.tdb): remove_from_freelist: not on list at off=1408 [2004/07/22 09:17:59, 0] tdb/tdbutil.c:tdb_log(724) ~ tdb(/etc/samba/secrets.tdb): tdb_free: left free f...
2014 Nov 02
3
[PATCH] customize: Add --ssh-inject option for injecting SSH keys.
...#chmod 0o644 auth_keys + ); + + (* Append the key. *) + g#write_append auth_keys key + | typ -> + warning (f_"don't know how to inject SSH keys into %s guests") typ + in + (* Set the random seed. *) msg (f_"Setting a random seed"); if not (Random_seed.set_random_seed g root) then @@ -232,6 +307,12 @@ exec >>%s 2>&1 msg (f_"Scrubbing: %s") path; g#scrub_file path + | `SSHInject user_key -> + let user, key = string_split "=" user_key in + let key = if key = "" then local_us...
2017 Jul 17
2
Is clang+llvm deterministisc?
I searched source code of LLVM/Clang 4.0.0 for 'random_seed' with grep. It seems the -frandom-seed option is not supported. The -rng-seed option appears to be defined in ./lib/Support/RandomNumberGenerator.cpp, which is source code for class RandomNumberGenerator. The constructor of class RandomNumberGenerator is private and is only called by Module...
2015 Jul 17
0
[PATCH 2/2] customize: add basic subscription-manager operations
...m. + =head2 INSTALLATION PROCESS When you invoke virt-builder, installation proceeds as follows: diff --git a/customize/Makefile.am b/customize/Makefile.am index 8f0a2d8..1974b80 100644 --- a/customize/Makefile.am +++ b/customize/Makefile.am @@ -43,6 +43,7 @@ SOURCES_MLI = \ perl_edit.mli \ random_seed.mli \ ssh_key.mli \ + subscription_manager.mli \ timezone.mli \ urandom.mli @@ -57,6 +58,7 @@ SOURCES_ML = \ perl_edit.ml \ random_seed.ml \ ssh_key.ml \ + subscription_manager.ml \ timezone.ml \ customize_cmdline.ml \ customize_run.ml \ diff --git a/customize/customize_run.ml b...
2015 Jul 17
4
[PATCH v2 0/2] basic subscription-manager support in virt-customize
Hi, this is the v2 of a series introducing basic support for registering/attaching/unregistering RHEL guests using subscription-manager, so it is possible to do for example: $ virt-customize -a rhel-guest.qcow2 \ --sm-credentials user:file:/path/to/password-file --sm-register \ --sm-attach file:/path/to/pool-file \ --install pkg1 --install pkg2 .. \ --sm-remove --sm-unregister