search for: rand_str

Displaying 3 results from an estimated 3 matches for "rand_str".

Did you mean: band_ctr
2006 Mar 21
13
Double and single quote usage in AWDWR
Hello everyone! I''ve noticed, that the book uses double quotes almost everywhere. It is like <%= javascript_include_tag "prototype" %> I''ve checked the "programming ruby, 2ed" book and found that double quotes are most suited when escape sequences and substitutions are required. Isn''t it more semantically correct to write this code like
2006 Feb 14
6
Creating a String of Random Characters and Numbers
I want to create a random string of length n that is made up of characters and integers. Is there a function in rails or ruby that allows me to do this? Thank you my friend :-). John Kopanas http://www.kopanas.com ===================================================================== http://www.soen.info - source of the freshest software engineering information on the net
2012 May 17
8
[PATCH] libxl: do not overwrite user supplied config when running bootloader
...(ty, v, indent = " ", parent = None): s = "" @@ -179,13 +178,6 @@ static void libxl_cpuid_policy_list_rand *pp = p; } -static void libxl_file_reference_rand_init(libxl_file_reference *p) -{ - memset(p, 0, sizeof(*p)); - if (rand() % 8) - p->path = rand_str(); -} - static void libxl_string_list_rand_init(libxl_string_list *p) { int i, nr = rand() % 16; diff -r ac45608496cd -r cdb947baea10 tools/libxl/libxl.c --- a/tools/libxl/libxl.c Thu May 17 16:39:51 2012 +0100 +++ b/tools/libxl/libxl.c Thu May 17 17:51:32 2012 +0100 @@ -3623,12 +3623,6 @@ i...