Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 33395
b: refs/heads/master
c: 8557511
h: refs/heads/master
i:
  33393: ba7ab18
  33391: 083d14a
v: v3
  • Loading branch information
Suresh Siddha authored and David S. Miller committed Aug 17, 2006
1 parent 58b937d commit 935e36f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 7ea49ed73c8d0d0bdf7c11fc18c61572d2d22176
refs/heads/master: 855751125093f758871b70da2951d8b92b6368cc
7 changes: 4 additions & 3 deletions trunk/net/core/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,13 @@ void __init net_random_init(void)
static int net_random_reseed(void)
{
int i;
unsigned long seed[NR_CPUS];
unsigned long seed;

get_random_bytes(seed, sizeof(seed));
for_each_possible_cpu(i) {
struct nrnd_state *state = &per_cpu(net_rand_state,i);
__net_srandom(state, seed[i]);

get_random_bytes(&seed, sizeof(seed));
__net_srandom(state, seed);
}
return 0;
}
Expand Down

0 comments on commit 935e36f

Please sign in to comment.