Fix issue with the computation (orders of the call to rand_get)
This commit is contained in:
1 parent
05bdf16d1c
commit
7e651907c0
1 file changed
+2
-1
+2
-1
@@ -116,7 +116,8 @@ test_dict(unsigned long n)
|
|||||||
#endif
|
#endif
|
||||||
M_LET(dict, DICT_OPLIST(ulong)) {
|
M_LET(dict, DICT_OPLIST(ulong)) {
|
||||||
for (size_t i = 0; i < n; i++) {
|
for (size_t i = 0; i < n; i++) {
|
||||||
dict_ulong_set_at(dict, rand_get(), rand_get() );
|
unsigned long key = rand_get();
|
||||||
|
dict_ulong_set_at(dict, key, rand_get() );
|
||||||
}
|
}
|
||||||
rand_init();
|
rand_init();
|
||||||
unsigned int s = 0;
|
unsigned int s = 0;
|
||||||
|
|||||||
Reference in new issue
Block a user