Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 204847
b: refs/heads/master
c: 1244b41
h: refs/heads/master
i:
  204845: f0b11bf
  204843: 0bfc6f7
  204839: 40f5054
  204831: ccdd169
v: v3
  • Loading branch information
Peter Korsgaard authored and Michal Marek committed Jul 26, 2010
1 parent 9c418c7 commit 6c65089
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0a28c47b8db8ff74d1bfbc5c5ad0100cea472351
refs/heads/master: 1244b41d00eb60cb3d05220383bc9d15b9045fb4
3 changes: 2 additions & 1 deletion trunk/scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -862,7 +862,8 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
sym->def[S_DEF_USER].tri = no;
break;
case def_random:
sym->def[S_DEF_USER].tri = (tristate)(rand() % 3);
cnt = sym_get_type(sym) == S_TRISTATE ? 3 : 2;
sym->def[S_DEF_USER].tri = (tristate)(rand() % cnt);
break;
default:
continue;
Expand Down

0 comments on commit 6c65089

Please sign in to comment.