Displaying 10 results from an estimated 10 matches for "randomseed".
Did you mean:
random_seed
1999 May 05
1
RNG R/Splus compatibility
...plus <- function(){T or F}
if (is.S())
{
RNGkind <- function(kind=NULL)
{# With a null argument this returns the current kind.
# kind = "default" resets the RNG to the Splus default.
# Splus does not allow arbitrary setting of .Random.seed so
# .RandomSeed is used. The existence of .RandomSeed is
# used to indicate whether an alternate RNG is used and the
# first element of .RandomSeed indicates the generator.
if ( is.null(kind))
{if(exists(".RandomSeed")) kind <- c("Wichmann-Hill")[1+.Rand...
2013 Jun 07
0
[Rcpp-devel] Setting the R random seed from Rcpp
...t; Cc: rcpp-devel at lists.r-forge.r-project.org
> Subject: Re: [Rcpp-devel] Setting the R random seed from Rcpp
>
>
> You can do something like this (i'm on my phone, so you might have to change it):
>
> Environment g = Environment::global_env() ;
> Environment::Binding RandomSeed = g[".Random.seed"] ;
>
> You get the current value of the binding like this:
>
> NumericVector someVariable = RandomSeed ;
>
> And then when you want to set the variable: you just do :
>
> RandomSeed = someVariable ;
>
> The Environment::Binding class a...
2008 May 10
2
Random number generation
...sample(1000:9999, size=1)
This code exists within a script that starts with the command:
remove(list=ls())
Each time that I run the script, it yields the same random number:
6420.
I thought that the problem might result from deleting the random
seed. However, list=ls() does not include .RandomSeed.
To my surprise, I can't replicate the problem with a 2-line script:
remove(list-ls())
sample(1000:9999, size=1)
Also, the same problem occurs if I use runif instead of sample.
Thoughts?
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-75...
2000 Aug 25
1
[patch] configurable ssh_prng_cmds
...RNG_COMMAND_FILE);
if (options->max_startups == -1)
options->max_startups = 10;
if (options->max_startups_rate == -1)
@@ -187,7 +190,7 @@
#endif
sPasswordAuthentication, sListenAddress,
sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset,
- sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail,
+ sStrictModes, sEmptyPasswd, sRandomSeedFile, sPrngCommandFile, sKeepAlives, sCheckMail,
sUseLogin, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
sIgnoreUserKnownHosts, sHostDSAKeyFile, sCiphers, sProtocol, sPidFile,
sGatewayPorts, sDSAAuthentication, sXAu...
2004 Aug 24
1
Possible problem with hostbased protocol 1 rhosts authentication
...n (16 -> 32)
debug1: Installing crc compensation attack detector.
debug1: Received encrypted confirmation.
debug1: Doing password authentication.
mr at tcm30's password:
"
# This is ssh server systemwide configuration file.
"
Port 22
ListenAddress 0.0.0.0
HostKey /etc/ssh_host_key
RandomSeed /etc/ssh_random_seed
ServerKeyBits 768
LoginGraceTime 600
KeyRegenerationInterval 7200
PermitRootLogin yes
IgnoreRhosts no
StrictModes yes
QuietMode no
X11Forwarding yes
X11DisplayOffset 10
FascistLogging no
PrintMotd yes
KeepAlive yes
SyslogFacility DAEMON
RhostsAuthentication yes
RhostsRSAAuthent...
2001 Mar 02
0
Patch for system-wide default environment
...ow_tcp_forwarding = -1;
options->num_allow_users = 0;
options->num_deny_users = 0;
***************
*** 210,216 ****
sPasswordAuthentication, sKbdInteractiveAuthentication, sListenAddress,
sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset,
sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail,
! sUseLogin, sAllowTcpForwarding,
sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
sIgnoreUserKnownHosts, sCiphers, sMacs, sProtocol, sPidFile,
sGatewayPorts, sPubkeyAuthentication, sXAuthLocation, sSubsystem, sMaxStartups,
--- 211,217 ----
sPasswordAut...
2001 Mar 14
1
/etc/default/login patch?
Would anybody happen to have or know of a patch to make /etc/default/login
PATH and SUPATH the default openssh path? We have customized paths for each
school of engineering (each have their own customized site bin). This is
easily controled with /etc/default/login. The --with-default-path option
is too rigid. This is Solaris I am talking about.
--mike
2000 Oct 24
2
feature request & patch submit: chroot(2) in sshd
...group == -1)
+ options->chroot_group = 0;
if (options->protocol == SSH_PROTO_UNKNOWN)
options->protocol = SSH_PROTO_1|SSH_PROTO_2;
if (options->gateway_ports == -1)
@@ -189,6 +195,7 @@
sPrintMotd, sIgnoreRhosts, sX11Forwarding, sX11DisplayOffset,
sStrictModes, sEmptyPasswd, sRandomSeedFile, sKeepAlives, sCheckMail,
sUseLogin, sAllowUsers, sDenyUsers, sAllowGroups, sDenyGroups,
+ sUseChroot, sChrootGroup,
sIgnoreUserKnownHosts, sHostDSAKeyFile, sCiphers, sProtocol, sPidFile,
sGatewayPorts, sDSAAuthentication, sXAuthLocation, sSubsystem, sMaxStartups
} ServerOpCodes;
@@ -236...
2013 Sep 20
0
[LLVMdev] Adding diversity for security (and testing)
...ith clearly documented deviations from the standard.
--- /dev/null
+++ b/lib/Support/RandomNumberGenerator.cpp
@@ -0,0 +1,271 @@
+
+//
+// The LLVM Compiler Infrastructure
Whoops! Missed the ruler comment at the top.
+namespace {
+ static cl::opt<unsigned long long>
+ RandomSeed("rng-seed", cl::value_desc("seed"),
+ cl::desc("Seed for the random number generator"));
namespace and static are redundant. Just use static.
http://llvm.org/docs/CodingStandards.html#static
+ PKCS5_PBKDF2_HMAC_SHA1(Password.data(), Password.size(), (un...
2013 Sep 19
2
[LLVMdev] Adding diversity for security (and testing)
Thanks for all the feedback! It seems there is some interest, so I thought I'd try to summarize discussions so far, and provide patches for closer inspection. I'm not sure if patches should end up here or on a different list in this instance, so if I should instead send this to a different list, I'm happy to do so.
- Is diversity needed, or are existing protections sufficient? As