Home
last modified time | relevance | path

Searched refs:rand_str (Results 1 – 25 of 130) sorted by relevance

123456

/dports/astro/gpsbabel/gpsbabel-gpsbabel_1_7_0/
H A Drandom.cc58 RandomFormat::rand_str(const int maxlen, const char* fmt) in rand_str() function in RandomFormat
113 wpt->shortname = rand_str(8, "Wpt_%s"); in random_generate_wpt()
140 wpt->icon_descr = rand_str(3, "Icon_%s"); in random_generate_wpt()
169 wpt->description = rand_str(16, "Des_%s"); in random_generate_wpt()
172 wpt->notes = rand_str(16, "Nts_%s"); in random_generate_wpt()
175 garmin_fs_t::set_addr(gmsd, rand_str(8, "Adr_%s")); in random_generate_wpt()
178 garmin_fs_t::set_city(gmsd, rand_str(8, "Cty_%s")); in random_generate_wpt()
187 garmin_fs_t::set_state(gmsd, rand_str(8, "Sta_%s")); in random_generate_wpt()
211 head->rte_name = rand_str(8, "Trk_%s"); in read()
214 head->rte_name = rand_str(8, "Rte_%s"); in read()
[all …]
/dports/security/stoken/stoken-0.92/examples/
H A Dsdtid-test.pl21 sub rand_str subroutine
61 add_str_node($node, "Origin", rand_str());
62 add_str_node($node, "Dest", rand_str());
63 add_str_node($node, "Name", rand_str(16));
64 add_str_node($node, "FirstToken", rand_str());
65 add_str_node($node, "LastToken", rand_str());
83 add_str_node($tkn, "UserFirstName", rand_str());
84 add_str_node($tkn, "UserLastName", rand_str());
85 add_str_node($tkn, "UserLogin", rand_str());
90 add_str_node($node, "Nickname", rand_str());
[all …]
/dports/astro/gpsbabel14/gpsbabel-1.4.4/
H A Drandom.c58 rand_str(const int maxlen, const char *fmt) in rand_str() function
120 head->rte_name = rand_str(8, "Trk_%s"); in random_read()
123 head->rte_name = rand_str(8, "Rte_%s"); in random_read()
126 head->rte_desc = rand_str(16, NULL); in random_read()
141 wpt->shortname = rand_str(8, "Wpt_%s"); in random_read()
192 wpt->description = rand_str(16, "Des_%s"); in random_read()
195 wpt->notes = rand_str(16, "Nts_%s"); in random_read()
198 GMSD_SET(addr, rand_str(8, "Adr_%s")); in random_read()
201 GMSD_SET(city, rand_str(8, "Cty_%s")); in random_read()
207 GMSD_SET(country, rand_str(8, "Ctr_%s")); in random_read()
[all …]
/dports/net/mpich/mpich-3.4.3/modules/libfabric/prov/gni/test/
H A Dfi_addr_str.c204 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
211 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
217 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
223 sprintf(rand_str + strlen(rand_str), "0x"); in generate_rand_fas()
225 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
231 sprintf(rand_str + strlen(rand_str), "0x"); in generate_rand_fas()
233 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
240 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
246 sprintf(rand_str + strlen(rand_str), "0x"); in generate_rand_fas()
248 rand_str[strlen(rand_str)] = ';'; in generate_rand_fas()
[all …]
/dports/security/kc24/kc-2.4.2/
H A Dcmd_getnum.c63 char *rand_str = NULL; in cmd_getnum() local
120 rand_str = get_random_str(spice, 1); in cmd_getnum()
121 if (!rand_str) { in cmd_getnum()
129 (void) strlcat((char *)line_randomed, rand_str, line_randomed_len); in cmd_getnum()
130 free(rand_str); rand_str = NULL; in cmd_getnum()
138 rand_str = get_random_str(spice, 1); in cmd_getnum()
139 if (!rand_str) { in cmd_getnum()
147 (void) strlcat((char *)line_randomed, rand_str, line_randomed_len); in cmd_getnum()
148 free(rand_str); rand_str = NULL; in cmd_getnum()
H A Dcmd_write.c49 char *rand_str = NULL; in cmd_write() local
110 rand_str = get_random_str(6, 0); in cmd_write()
111 if (!rand_str) { in cmd_write()
117 if (strlcat(db_params_tmp.db_filename, rand_str, MAXPATHLEN) >= MAXPATHLEN) { in cmd_write()
121 free(rand_str); rand_str = NULL; in cmd_write()
125 free(rand_str); rand_str = NULL; in cmd_write()
/dports/security/py-angr/angr-9.0.5405/angr/analyses/identifier/functions/
H A Dskip_recv_n.py7 def rand_str(length, byte_list=None): function
31 buf = rand_str(max_len+5)
34 stdin = rand_str(max_len+5)
64 buf = rand_str(max_len+5)
66 stdin = rand_str(max_len+5)
95 buf = rand_str(max_len+5)
97 stdin = rand_str(max_len+5)
H A Dstrlen.py9 def rand_str(self, length, byte_list=None): #pylint disable=no-self-use member in strlen
22 s = self.rand_str(length, strlen.non_null) + b"\x00" + self.rand_str(length)
H A Dstrcpy.py6 def rand_str(length, byte_list=None): function
33 buf = rand_str(strlen, byte_list=strcpy.non_null) + b"\x00"
34 result_buf = rand_str(strlen+1)
H A Dstrncpy.py6 def rand_str(length, byte_list=None): function
37 buf = rand_str(strlen, byte_list=strncpy.non_null) + b"\x00"
38 result_buf = rand_str(strlen+1)
H A Dmemcmp.py7 def rand_str(length, byte_list=None): function
35 bufb = rand_str(l)
36 bufa = bufb + rand_str(5)
H A Dmemcpy.py9 def rand_str(length, byte_list=None): function
39 buf = rand_str(copy_len)
40 result_buf = rand_str(copy_len+5)
/dports/net-p2p/p5-Net-DirectConnect/Net-DirectConnect-0.14/examples/
H A Dflooddef.pl20 'Nick' => ( $ARGV[1] or rand_str( rand_int( 1, 10 ) ) ),
22 'client' => rand_str( rand_int( 1, 5 ) ),
23 'description' => rand_str( rand_int( 1, 20 ) ),
24 'email' => rand_str( rand_int( 2, 10 ) ) . '@' . rand_str( rand_int( 2, 10 ) ) . '.com',
/dports/devel/p5-Cache-FastMmap/Cache-FastMmap-1.57/t/
H A D9.t22 sub rand_str {
32 my $K = rand_str(rand(10) + 10);
33 my $V = rand_str(rand(20) + 20);
64 my $K = rand_str(rand(10) + 10);
65 my $V = [ rand_str(rand(20) + 20) ];
H A D13.t44 my $K1 = rand_str(10);
45 my $K2 = rand_str(10);
46 my $V = rand_str(10) x 1000;
89 sub rand_str {
/dports/textproc/p5-XML-Generator-DBI/XML-Generator-DBI-1.00/t/
H A D05bycol.t36 sub rand_str { join('', map { chr(rand(26) + 97) } (1..8)) }
40 {}, rand_str, rand_str, rand_str, rand_str)
H A D03execute_one.t36 sub rand_str { join('', map { chr(rand(26) + 97) } (1..8)) }
39 $dbh->do("insert into TestTable (column1, column2) values (?, ?)", {}, rand_str, rand_str)
/dports/lang/ruby26/ruby-2.6.9/test/webrick/
H A Dtest_httpproxy.rb125 rand_str = File.read(__FILE__)
126 rand_str.freeze
127 nr = 1024 ** 2 / rand_str.size # bigger works, too
129 nr.times { exp.update(rand_str) }
137 res['content-length'] = (nr * rand_str.size).to_s
141 res.body = ->(socket) { nr.times { socket.write(rand_str) } }
158 th = Thread.new { nr.times { wr.write(rand_str) }; wr.close }
171 assert_equal(nr * rand_str.size, res.content_length)
186 'Content-Length' => (nr * rand_str.size).to_s,
189 th = Thread.new { nr.times { wr.write(rand_str) }; wr.close }
[all …]
/dports/databases/qof/qof-0.8.8/qof/test/
H A Dtest-sql.c143 gchar * sql_str, * gstr, * test, * err, *rand_str; in test_sql() local
152 rand_str = g_strescape (get_random_string (), NULL); in test_sql()
155 kvp_frame_set_string (qof_instance_get_slots (inst), "debug/test/string", rand_str); in test_sql()
158 do_test (0 == safe_strcasecmp (test, rand_str), err); in test_sql()
188 gstr, num_str, kvp_id, gstr, rand_str); in test_sql()
211 "WHERE path='/debug/test/string' and guid='%s';", rand_str, gstr); in test_sql()
/dports/chinese/phpbb-tw/phpBB2/
H A Dprofile.php63 $rand_str = dss_rand();
65 return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8);
/dports/www/phpbb/phpBB2/
H A Dprofile.php63 $rand_str = dss_rand();
65 return ( $hash ) ? md5($rand_str) : substr($rand_str, 0, 8);
/dports/security/py-securesystemslib/securesystemslib-124bb05d/securesystemslib/
H A Dunittest_toolbox.py146 rand_str = ''
148 rand_str += random.choice('abcdefABCDEF' +string.digits)
150 return rand_str
/dports/www/phpbb3/phpBB3/phpbb/install/module/install_database/task/
H A Dadd_config_settings.php303 $rand_str = md5(mt_rand());
304 $rand_str = str_replace('0', 'z', base_convert($rand_str, 16, 35));
305 $rand_str = substr($rand_str, 0, 5);
306 $cookie_name .= strtolower($rand_str);
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/wiredtiger/test/csuite/wt2403_lsm_workload/
H A Dmain.c36 rand_str(uint64_t i, char *str) in rand_str() function
52 rand_str(i, str2); in check_str()
120 rand_str(i, str); in main()
143 rand_str(i, str); in main()
209 rand_str(i, str); in main()
/dports/devel/p5-Cache-FastMmap/Cache-FastMmap-1.57/
H A Dmmap_cache_test.c86 char * rand_str(int nchar) { in rand_str() function
157 str1 = rand_str(10); in LinearTests()
158 str2 = rand_str(10); in LinearTests()
260 char * k = rand_str(10 + (int)(drand48() * 10)); in RepeatMixTests()
261 char * v = rand_str(10); in RepeatMixTests()
262 char * ve = rand_str((int)(drand48() * 200)); in RepeatMixTests()

123456